commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r190955 - /jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c
Date Thu, 16 Jun 2005 16:55:25 GMT
Author: mturk
Date: Thu Jun 16 09:55:25 2005
New Revision: 190955

URL: http://svn.apache.org/viewcvs?rev=190955&view=rev
Log:
Fix bug 35359. Patch provided by Robert Longson. Thanks!

Modified:
    jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c

Modified: jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c?rev=190955&r1=190954&r2=190955&view=diff
==============================================================================
--- jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/nt/procrun/src/utils.c Thu Jun 16 09:55:25
2005
@@ -897,7 +897,7 @@
         ++p;
     }
     if (p != szString)
-        return (LPSTR)szString;
+        return apxPoolStrdupA(hPool, szString);
     else {
         DWORD l = ExpandEnvironmentStringsA(szString, NULL, 0);
         if (l) {
@@ -927,7 +927,7 @@
         ++p;
     }
     if (p != szString)
-        return (LPWSTR)szString;
+        return apxPoolStrdupW(hPool, szString);
     else {
         DWORD l = ExpandEnvironmentStringsW(szString, NULL, 0);
         if (l) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message