Ignore:
Timestamp:
Feb 28, 2010, 9:59:12 PM (11 years ago)
Author:
jmr@…
Message:

error checking, sprintf -> snprintf, strcpy -> strncpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/pextlib1.0/tracelib.c

    r64155 r64294  
    343343        char buf[1024], tclcmd[32];
    344344       
    345         vsprintf(buf, format, va);
    346        
    347         sprintf(tclcmd, "ui_%s $warn", severity);
     345        vsnprintf(buf, sizeof(buf), format, va);
     346       
     347        snprintf(tclcmd, sizeof(tclcmd), "ui_%s $warn", severity);
    348348       
    349349        Tcl_SetVar(interp, "warn", buf, 0);
Note: See TracChangeset for help on using the changeset viewer.