Little fix to avoid overflow
This commit is contained in:
parent
abc9568690
commit
009ae1f17d
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ static int convert(char *fn, int ConvType)
|
||||||
if ((in = wfopen(fn, "rw")) == NULL) {
|
if ((in = wfopen(fn, "rw")) == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
strcpy(tempFn, fn);
|
safe_strncpy(tempFn, fn, sizeof(tempFn));
|
||||||
c = strlen(tempFn);
|
c = strlen(tempFn);
|
||||||
tempFn[c] = '.';
|
tempFn[c] = '.';
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue