Changeset 1100
- Timestamp:
- Aug 2, 2008, 8:13:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/notebook.c ¶
r1097 r1100 39 39 20 Jul 08 JBS Ticket 114: Support user-selectable env. strings in Tree container. 40 40 31 Jul 08 JBS Ticket 114: Improved code to avoid traps. 41 02 Aug 08 JBS Ticket 114: Improved code to avoid traps. 41 42 42 43 ***********************************************************************/ … … 1279 1280 } 1280 1281 free(pszTemp); 1281 } else {1282 Runtime_Error(pszSrcFile, __LINE__, "Unable to allocate memory");1283 1282 } 1284 1283 if (hwndTree && (fShowEnvChanged || (fShowEnv && fTreeEnvVarListChanged))) … … 1291 1290 (WinWindowFromID(hwndTree, FID_CLIENT), TREE_CNR), WM_COMMAND, 1292 1291 MPFROM2SHORT(IDM_RESCAN, 0), MPVOID); 1293 pszTemp = x malloc(strlen(pci->pszFileName) + 1, pszSrcFile, __LINE__);1292 pszTemp = xstrdup(pci->pszFileName, pszSrcFile, __LINE__); 1294 1293 if (pszTemp) { 1295 strcpy(pszTemp, pci->pszFileName);1296 1294 PostMsg(hwndTree, UM_SHOWME, MPFROMP(pszTemp), MPVOID); 1297 1295 /* pszTemp is freed in the UM_SHOWME code */
Note:
See TracChangeset
for help on using the changeset viewer.