Changeset 57 for trunk/mediafolder/c/helper
- Timestamp:
- May 11, 2023, 10:44:53 PM (2 years ago)
- Location:
- trunk/mediafolder/c/helper
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mediafolder/c/helper/cddbhelper.cpp
r2 r57 40 40 void extern printError(char* errorString) 41 41 { 42 char buffer[CCHMAXPATH];42 char buffer[CCHMAXPATH] = {0}; 43 43 char *ptr; 44 44 … … 47 47 writeLog(errorString); 48 48 if(hwndError) { 49 strncpy(buffer, errorString, sizeof(buffer) );49 strncpy(buffer, errorString, sizeof(buffer) - 1); 50 50 ptr=strchr(buffer,'\n'); 51 51 if(ptr) { -
trunk/mediafolder/c/helper/launchpad.cpp
r2 r57 557 557 static HWND hwndBubbleClient; 558 558 ULONG style=FCF_BORDER|FCF_NOBYTEALIGN; 559 char winText[255] ;559 char winText[255] = {0}; 560 560 561 561 /* Get window text for size calculating */ … … 1028 1028 if(somIsObj(folderClass)) 1029 1029 wpFolder=(WPFolder*)((M_WPFolder*)folderClass)->wpclsQueryFolder(chrConfigID, FALSE); 1030 } 1031 1030 if(!somIsObj(wpFolder)) 1031 return FALSE; 1032 } 1033 else 1034 return FALSE; 1035 1036 // Fixme see line 1106 1032 1037 ulBufferSize=sizeof(chrPath); 1033 1038 wpFolder->wpQueryRealName(chrPath, &ulBufferSize, TRUE); … … 1101 1106 return FALSE; 1102 1107 } 1103 1108 else 1109 return FALSE; 1110 // Fixme wpFolder can be uninittailized if(somIsObj(wpParentFolder)) is false sould we return FALSE 1104 1111 /* Build ini name */ 1105 1112 ulBufferSize=sizeof(chrPath);
Note:
See TracChangeset
for help on using the changeset viewer.