]>
Commit | Line | Data |
---|---|---|
c5a8ce94 | 1 | --- DSS-v5_0_3_2/qtpasswd.tproj/QTSSPasswd.cpp.orig 2003-08-16 01:53:34.000000000 +0200 |
2 | +++ DSS-v5_0_3_2/qtpasswd.tproj/QTSSPasswd.cpp 2005-03-29 19:54:14.623246856 +0200 | |
3 | @@ -919,12 +919,12 @@ | |
4 | if(lastOccurOfSeparator != NULL) | |
5 | { | |
6 | int filenameLength = ::strlen(lastOccurOfSeparator) + sizeof(char); | |
7 | - tempFilePathLength = pathLength - filenameLength + sizeof(char) + ::strlen(tmpFile); | |
8 | + tempFilePathLength = pathLength - filenameLength + sizeof(char) + ::strlen(tmpFile) + 2; | |
9 | ||
10 | - tempFilePath = new char[tempFilePathLength]; | |
11 | - memcpy(tempFilePath, qtusersFilePath, (pathLength - filenameLength)); | |
12 | - memcpy(tempFilePath + (pathLength - filenameLength), tmpFile, ::strlen(tmpFile)); | |
13 | - tempFilePath[pathLength - filenameLength + ::strlen(tmpFile)] = '\0'; | |
14 | + tempFilePath = new char[tempFilePathLength + 2]; | |
15 | + memcpy(tempFilePath, qtusersFilePath, (pathLength - filenameLength + 2)); | |
16 | + memcpy(tempFilePath + (pathLength - filenameLength) + 2, tmpFile, ::strlen(tmpFile)); | |
17 | + tempFilePath[pathLength - filenameLength + ::strlen(tmpFile) + 2] = '\0'; | |
18 | ||
19 | /* Get temp users file path name */ | |
20 | if (!createGroup && !deleteGroup) |