SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
21
x11/fvwm2/patches/patch-libs_Module_c
Normal file
21
x11/fvwm2/patches/patch-libs_Module_c
Normal file
|
@ -0,0 +1,21 @@
|
|||
Index: libs/Module.c
|
||||
--- libs/Module.c.orig
|
||||
+++ libs/Module.c
|
||||
@@ -497,7 +497,7 @@ char *module_expand_action(
|
||||
return NULL;
|
||||
}
|
||||
/* print the number into the string */
|
||||
- sprintf(dest, "%d%n", val, &offset);
|
||||
+ offset = sprintf(dest, "%d", val);
|
||||
dest += offset;
|
||||
}
|
||||
else if (is_string)
|
||||
@@ -512,7 +512,7 @@ char *module_expand_action(
|
||||
/* print the colour name into the string */
|
||||
if (string)
|
||||
{
|
||||
- sprintf(dest, "%s%n", string, &offset);
|
||||
+ offset = sprintf(dest, "%s", string);
|
||||
dest += offset;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue