projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc9568
)
Little fix to avoid overflow
author
Eric Andersen
<andersen@codepoet.org>
Wed, 3 Jul 2002 04:24:08 +0000
(
04:24
-0000)
committer
Eric Andersen
<andersen@codepoet.org>
Wed, 3 Jul 2002 04:24:08 +0000
(
04:24
-0000)
coreutils/dos2unix.c
patch
|
blob
|
history
diff --git
a/coreutils/dos2unix.c
b/coreutils/dos2unix.c
index 8b65d05de23714424c4259257aef64bf1bb76aef..b1d0a9d70b8764dee64c988328231e6dfdb481a8 100644
(file)
--- 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;
}
- s
trcpy(tempFn, fn
);
+ s
afe_strncpy(tempFn, fn, sizeof(tempFn)
);
c = strlen(tempFn);
tempFn[c] = '.';
while(1) {