13 lines
383 B
Diff
13 lines
383 B
Diff
diff --git xsel.c xsel.c
|
|
index 79cc68b..556585e 100644
|
|
--- xsel.c
|
|
+++ xsel.c
|
|
@@ -1983,7 +1983,7 @@ main(int argc, char *argv[])
|
|
dont_output = True;
|
|
} else if (OPT("--logfile") || OPT("-l")) {
|
|
i++; if (i >= argc) goto usage_err;
|
|
- strncpy (logfile, argv[i], MAXFNAME);
|
|
+ strncpy (logfile, argv[i], MAXFNAME-1);
|
|
} else {
|
|
goto usage_err;
|
|
}
|