Ignore:
Timestamp:
01/12/11 21:54:09 (10 years ago)
Author:
alno
Message:

WebIf: fix possible issue with sprintf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/oscam-http-helpers.c

    r4433 r4434  
    637637        }
    638638    }
    639     if(!days)   sprintf(value, "%02d:%02d:%02d", hours, mins, secs);
    640     else            sprintf(value, "%02dd %02d:%02d:%02d", days, hours, mins, secs);
     639    if(!days)   snprintf(value, sizeof(value), "%02d:%02d:%02d", hours, mins, secs);
     640    else        snprintf(value, sizeof(value), "%02dd %02d:%02d:%02d", days, hours, mins, secs);
    641641
    642642    return tpl_addTmp(vars, value);
Note: See TracChangeset for help on using the changeset viewer.