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/mediafolder/c/cddb/pmcddb.cpp

    r127 r142  
    341341
    342342  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);
    344344    chrPtr=strrchr(host,':');
    345345    if(chrPtr) {
Note: See TracChangeset for help on using the changeset viewer.