You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2013/03/07 06:36:39 UTC
svn commit: r1453680 -
/commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c
Author: mturk
Date: Thu Mar 7 05:36:39 2013
New Revision: 1453680
URL: http://svn.apache.org/r1453680
Log:
Apply DAEMON-288 patch
Modified:
commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c
Modified: commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c
URL: http://svn.apache.org/viewvc/commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c?rev=1453680&r1=1453679&r2=1453680&view=diff
==============================================================================
--- commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c (original)
+++ commons/proper/daemon/branches/1.0.x/src/native/windows/apps/prunsrv/prunsrv.c Thu Mar 7 05:36:39 2013
@@ -585,7 +585,7 @@ static BOOL docmdInstallService(LPAPXCMD
apxStrQuoteInplaceW(szImage);
/* Add run-service command line option */
lstrlcatW(szImage, SIZ_HUGLEN, L" ");
- lstrlcatW(szName, SIZ_BUFLEN, L"//RS//");
+ lstrlcpyW(szName, SIZ_BUFLEN, L"//RS//");
lstrlcatW(szName, SIZ_HUGLEN, lpCmdline->szApplication);
apxStrQuoteInplaceW(szName);
lstrlcatW(szImage, SIZ_HUGLEN, szName);