]> 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>
Tue, 22 Apr 2014 22:04:11 +0000 (02:04 +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 2aac144b9ecab420cc9fbbeaac79e071e05d1605..6490541ebc5bc37c122d408e905a4c16c02482c8 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -1340,8 +1340,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
     }