commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1130646 - /commons/proper/daemon/trunk/src/native/windows/src/service.c
Date Thu, 02 Jun 2011 16:42:28 GMT
Author: mturk
Date: Thu Jun  2 16:42:28 2011
New Revision: 1130646

URL: http://svn.apache.org/viewvc?rev=1130646&view=rev
Log:
DAEMON-206 Handle long service names

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

Modified: commons/proper/daemon/trunk/src/native/windows/src/service.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/native/windows/src/service.c?rev=1130646&r1=1130645&r2=1130646&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/native/windows/src/service.c (original)
+++ commons/proper/daemon/trunk/src/native/windows/src/service.c Thu Jun  2 16:42:28 2011
@@ -54,6 +54,10 @@ static BOOL __apxIsValidServiceName(LPCW
             }
         }
     }
+    if (i > 256) {
+        apxDisplayError(FALSE, NULL, 0, "Service name too long %S", szServiceName);
+        return FALSE;
+    }
     return TRUE;
 }
 



Mime
View raw message