openbsd-ports/x11/asclock/patches/patch-config_c
naddy dbbbe3968d Update to 2.0.12; requested and tested by Joshua Stein <jcs@rt.fm>.
- Docks under WindowMaker.
- The port now supports three themes with 19 localizations each, plus
  five fixed themes, for a total of 62 different flavors.
2001-01-06 16:43:44 +00:00

15 lines
477 B
Plaintext

$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;
}