Use strcat instead of strncat for a constant string
GCC complains otherwise.
This commit is contained in:
parent
49d9cf6d7f
commit
c195987770
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue