]> granicus.if.org Git - gc/commitdiff
Fix TEXT() usage for concatenated strings in GC_CreateLogFile (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Tue, 22 Apr 2014 22:04:11 +0000 (02:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 2 May 2014 20:41:27 +0000 (00:41 +0400)
* misc.c (GC_CreateLogFile): Use TEXT() for each of concatenated
literals (fix "concatenating mismatched strings" error if UNICODE
defined).

misc.c

diff --git a/misc.c b/misc.c
index a61a4261c09b9be63ce83304d44357c03ae5bd8a..6378a1fbdfcbb8fdb98719a207f7051a8fed072a 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1327,8 +1327,8 @@ GC_API void GC_CALL GC_enable_incremental(void)
         if (len > 4 && pathBuf[len - 4] == (TCHAR)'.') {
           len -= 4; /* strip executable file extension */
         }
-        BCOPY(TEXT("." GC_LOG_STD_NAME), &pathBuf[len],
-              sizeof(TEXT("." GC_LOG_STD_NAME)));
+        BCOPY(TEXT(".") TEXT(GC_LOG_STD_NAME), &pathBuf[len],
+              sizeof(TEXT(".") TEXT(GC_LOG_STD_NAME)));
 #     endif
     }