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;
|
||||
fname = new char[strlen(path)+1+strlen(_fname)+1];
|
||||
strcpy(fname,path);
|
||||
strncat(fname,"\\",1);
|
||||
strcat(fname,"\\");
|
||||
strcat(fname,_fname);
|
||||
fp = fopen(fname,"w");
|
||||
if (fp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue