Changeset 142
- Timestamp:
- Jan 21, 2024, 10:17:50 PM (20 months ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/mm-progs/mmfind/mmfind.c
r126 r142 315 315 316 316 if(bIsMidi) 317 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) );317 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) - 1); 318 318 else 319 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice) );319 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice) - 1); 320 320 321 321 /* Start audio file */ -
trunk/classes/mm-progs/videoplayer/mmplayer.c
r108 r142 159 159 160 160 /* Track to play. Full path */ 161 char chrSourceName[CCHMAXPATH ]={0};161 char chrSourceName[CCHMAXPATH + 1]={0}; 162 162 char * chrPtrName=NULLHANDLE; /* Pointer to filename */ 163 163 char chrClassName[100]= {0}; -
trunk/classes/mm-progs/videoplayer/playaudio.c
r57 r142 158 158 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice)); 159 159 #endif 160 strncpy(chrDevice,"DIGITALVIDEO02", sizeof(chrDevice) );160 strncpy(chrDevice,"DIGITALVIDEO02", sizeof(chrDevice) - 1); 161 161 // strncpy(chrDevice,"xine", sizeof(chrDevice)); 162 162 hwndNotify=hwndFrame;//WinWindowFromID(hwndTop, IDDLG_TOPMIDDLE); -
trunk/classes/mm-progs/videoplayer/vioplayer.c
r2 r142 231 231 /* Save source name */ 232 232 if(argc==2) 233 str cpy(chrSourceName, argv[1]);233 strncpy(chrSourceName, argv[1], CCHMAXPATH); 234 234 printf("File: %s\n", chrSourceName); 235 235 -
trunk/mediafolder/c/cddb/pmcddb.cpp
r127 r142 341 341 342 342 for(b=0;b<NUMSERVERS;b++) {/* Query the whole list of servers if necessary */ 343 strncpy(host,cddbServer[b],sizeof(host) );343 strncpy(host,cddbServer[b],sizeof(host) - 1); 344 344 chrPtr=strrchr(host,':'); 345 345 if(chrPtr) { -
trunk/mediafolder/c/cdfldr/cdfolderoverriddenwpmethods.cpp
r62 r142 457 457 // } 458 458 459 strncpy(chrDevice,"CDAUDIO", sizeof(chrDevice) );459 strncpy(chrDevice,"CDAUDIO", sizeof(chrDevice) - 1); 460 460 461 461 PSZ pszObjectID; -
trunk/mediafolder/c/createcd/createcd.c
r108 r142 323 323 324 324 if(!getMessage(nameTemplate, /* IDSTR_LAUNCHPADFLYOVER */ IDSTR_CDFOLDERNAME, sizeof(nameTemplate), hmodRes)) 325 strncpy(nameTemplate, "CD-Audio player^Drive %c:", sizeof(nameTemplate) );325 strncpy(nameTemplate, "CD-Audio player^Drive %c:", sizeof(nameTemplate) - 1); 326 326 327 327 if(!loadLVMFuncs()) { -
trunk/mediafolder/c/mediafldr/mediafolder.cpp
r133 r142 768 768 769 769 if(contentObject->somIsA(mmMIDIClass)) 770 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) );770 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) - 1); 771 771 else /*if(contentObject->somIsA(cwAudioClass) || contentObject->somIsA(mmAudioClass))*/ 772 772 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice)); … … 1080 1080 1081 1081 if(contentObject->somIsA(mmMIDIClass)) 1082 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) );1082 strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) - 1); 1083 1083 else /*if(contentObject->somIsA(cwAudioClass) || contentObject->somIsA(mmAudioClass))*/ 1084 1084 strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice));
Note:
See TracChangeset
for help on using the changeset viewer.