SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
13
x11/asclock/patches/patch-config_c
Normal file
13
x11/asclock/patches/patch-config_c
Normal file
|
@ -0,0 +1,13 @@
|
|||
--- config.c.orig Fri Jan 5 20:59:29 2001
|
||||
+++ config.c Fri Jan 5 21:00:43 2001
|
||||
@@ -251,8 +251,8 @@ void parseArgs(int argc, char **argv)
|
||||
continue;
|
||||
case 'e':
|
||||
if(++i >=argc) usage(ProgName);
|
||||
- strcpy(exec_str, argv[i]);
|
||||
- strcat(exec_str, " &");
|
||||
+ strlcpy(exec_str, argv[i], MAX_PATH_LEN);
|
||||
+ strlcat(exec_str, " &", MAX_PATH_LEN);
|
||||
continue;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue