Fix warning in UNIX.

This commit is contained in:
2021-03-31 04:49:14 +01:00
parent d7d842b1ba
commit 78ae1f44a4

View File

@@ -37,7 +37,6 @@ void Filenames(const char* path)
int ret; int ret;
FILE* h; FILE* h;
int rc, wRc, cRc; int rc, wRc, cRc;
char message[300];
int pos; int pos;
ret = chdir(path); ret = chdir(path);
@@ -76,10 +75,7 @@ void Filenames(const char* path)
if(!h) { rc = errno; } if(!h) { rc = errno; }
else else
{ {
memset(message, 0, 300); ret = fprintf(h, FILENAME_FORMAT, filenames[pos]);
sprintf(message, FILENAME_FORMAT, filenames[pos]);
ret = fprintf(h, message);
if(ret < 0) { wRc = errno; } if(ret < 0) { wRc = errno; }
ret = fclose(h); ret = fclose(h);