commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1203535 - /commons/proper/daemon/trunk/src/native/windows/src/log.c
Date Fri, 18 Nov 2011 08:54:56 GMT
Author: mturk
Date: Fri Nov 18 08:54:56 2011
New Revision: 1203535

URL: http://svn.apache.org/viewvc?rev=1203535&view=rev
Log:
WriteFile requires DWORD. strlen on WIN64 returns 64-bit

Modified:
    commons/proper/daemon/trunk/src/native/windows/src/log.c

Modified: commons/proper/daemon/trunk/src/native/windows/src/log.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/log.c?rev=1203535&r1=1203534&r2=1203535&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/log.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/log.c Fri Nov 18 08:54:56 2011
@@ -358,7 +358,7 @@ apxLogWrite(
                 WriteFile(lf->hFile, sb, lstrlenA(sb), &wr, NULL);
             }
             WriteFile(lf->hFile, _log_level[dwLevel],
-                          strlen(_log_level[dwLevel]), &wr, NULL);
+                      lstrlenA(_log_level[dwLevel]), &wr, NULL);
             if (f && lf->dwLogLevel == APXLOG_LEVEL_DEBUG) {
                 wsprintfA(sb, "(%10s:%-4d) ", f, dwLine);
                 WriteFile(lf->hFile, sb, lstrlenA(sb), &wr, NULL);



Mime
View raw message