Changeset 57 for trunk/classes/c/c_common
- Timestamp:
- May 11, 2023, 10:44:53 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/c/c_common/helper.c
r49 r57 62 62 HAPP happ; 63 63 HWND hwndAppTerminateHandler; 64 char startupDir[CCHMAXPATH] ;64 char startupDir[CCHMAXPATH] = {0}; 65 65 char *chrPtr; 66 66 … … 73 73 pDetails.pszParameters = parameters; 74 74 /* Set the startup directory to the location of the executable */ 75 strncpy(startupDir, wrapperExe, sizeof(startupDir) );75 strncpy(startupDir, wrapperExe, sizeof(startupDir) - 1); 76 76 // SysWriteToTrapLog("1: %s %s\n", startupDir, wrapperExe); 77 77 if((chrPtr=strrchr(startupDir,'\\'))!=NULLHANDLE) {
Note:
See TracChangeset
for help on using the changeset viewer.