diff options
| author | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-22 03:26:21 +0200 |
|---|---|---|
| committer | Timotej Lazar <timotej.lazar@araneo.si> | 2020-04-23 18:52:43 +0200 |
| commit | c1959877702d77f166eb0c4e4c36619c3ad4f9cc (patch) | |
| tree | d4717c4137855ca12784eb60e113421993779a1a | |
| parent | 49d9cf6d7fd35e76e12ae05a65153efa773d1ff9 (diff) | |
Use strcat instead of strncat for a constant string
GCC complains otherwise.
| -rw-r--r-- | src/win95/debuglog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win95/debuglog.cpp b/src/win95/debuglog.cpp index 9b64a76..ea336a0 100644 --- a/src/win95/debuglog.cpp +++ b/src/win95/debuglog.cpp @@ -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) |
