← Commit list

009ae1f17

Eric Andersen
Eric Andersen
2002-07-03
FAILED Duration: 5s

Subject

Little fix to avoid overflow

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/dos2unix.c+1 -1
@@ -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) {