aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-03 04:24:08 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-03 04:24:08 +0000
commit009ae1f17daa320836c4215c16ea1c0db12a5d07 (patch)
treed8736ddc4ec25f2b3df81bbc430ca1dbd8dbb496 /coreutils
parentabc95686907267ef6e041b7446e81b787a3a2905 (diff)
downloadbusybox-009ae1f17daa320836c4215c16ea1c0db12a5d07.tar.gz
Little fix to avoid overflow
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/dos2unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c
index 8b65d05de..b1d0a9d70 100644
--- a/coreutils/dos2unix.c
+++ b/coreutils/dos2unix.c
@@ -58,7 +58,7 @@ static int convert(char *fn, int ConvType)
if ((in = wfopen(fn, "rw")) == NULL) {
return -1;
}
- strcpy(tempFn, fn);
+ safe_strncpy(tempFn, fn, sizeof(tempFn));
c = strlen(tempFn);
tempFn[c] = '.';
while(1) {