commit | 009ae1f17daa320836c4215c16ea1c0db12a5d07 | [log] [tgz] |
---|---|---|
author | Eric Andersen <andersen@codepoet.org> | Wed Jul 03 04:24:08 2002 +0000 |
committer | Eric Andersen <andersen@codepoet.org> | Wed Jul 03 04:24:08 2002 +0000 |
tree | d8736ddc4ec25f2b3df81bbc430ca1dbd8dbb496 | |
parent | abc95686907267ef6e041b7446e81b787a3a2905 [diff] |
Little fix to avoid overflow
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 8b65d05..b1d0a9d 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c
@@ -58,7 +58,7 @@ if ((in = wfopen(fn, "rw")) == NULL) { return -1; } - strcpy(tempFn, fn); + safe_strncpy(tempFn, fn, sizeof(tempFn)); c = strlen(tempFn); tempFn[c] = '.'; while(1) {