Ignore:
Timestamp:
Jan 21, 2024, 10:17:50 PM (19 months ago)
Author:
gyoung
Message:

Fix warnings and error found by C++Check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/classes/mm-progs/mmfind/mmfind.c

    r126 r142  
    315315
    316316  if(bIsMidi)
    317     strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice));
     317    strncpy(chrDevice,"SEQUENCER", sizeof(chrDevice) - 1);
    318318  else
    319     strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice));
     319    strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice) - 1);
    320320
    321321  /* Start audio file */
Note: See TracChangeset for help on using the changeset viewer.