From c1959877702d77f166eb0c4e4c36619c3ad4f9cc Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 22 Apr 2020 03:26:21 +0200 Subject: [PATCH] Use strcat instead of strncat for a constant string GCC complains otherwise. --- src/win95/debuglog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)