Changeset 142 for trunk/classes/mm-progs
- Timestamp:
- Jan 21, 2024, 10:17:50 PM (19 months ago)
- Location:
- trunk/classes/mm-progs
- Files:
-
- 4 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
Note:
See TracChangeset
for help on using the changeset viewer.