Use strcat instead of strncat for a constant string

GCC complains otherwise.
This commit is contained in:
Timotej Lazar 2020-04-22 03:26:21 +02:00
parent 49d9cf6d7f
commit c195987770

View file

@ -17,7 +17,7 @@ LogFile::LogFile(char const * const _fname) : fname(0) , ever_written(0)
if (!path) return; if (!path) return;
fname = new char[strlen(path)+1+strlen(_fname)+1]; fname = new char[strlen(path)+1+strlen(_fname)+1];
strcpy(fname,path); strcpy(fname,path);
strncat(fname,"\\",1); strcat(fname,"\\");
strcat(fname,_fname); strcat(fname,_fname);
fp = fopen(fname,"w"); fp = fopen(fname,"w");
if (fp) if (fp)