openbsd-ports/x11/asclock/patches/patch-config_c

15 lines
477 B
Plaintext
Raw Normal View History

$OpenBSD: patch-config_c,v 1.1 2001/01/06 16:43:45 naddy Exp $
--- 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;
}