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

Fix warnings and error found by C++Check

File:
1 edited

Legend:

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

    r57 r142  
    158158    strncpy(chrDevice,"WAVEAUDIO", sizeof(chrDevice));
    159159#endif
    160   strncpy(chrDevice,"DIGITALVIDEO02", sizeof(chrDevice));
     160  strncpy(chrDevice,"DIGITALVIDEO02", sizeof(chrDevice) - 1);
    161161  //  strncpy(chrDevice,"xine", sizeof(chrDevice));
    162162  hwndNotify=hwndFrame;//WinWindowFromID(hwndTop, IDDLG_TOPMIDDLE);
Note: See TracChangeset for help on using the changeset viewer.