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