• Andrew Morton's avatar
    [PATCH] snprintf fixes · 01d1a791
    Andrew Morton authored
    From: Juergen Quade <quade@hsnr.de>
    
    Lots of places in the kernel are using [v]snprintf wrongly: they assume it
    returns the number of characters copied.  It doesn't.  It returns the
    number of characters which _would_ have been copied had the buffer not been
    filled up.
    
    So create new functions vscnprintf() and scnprintf() which have the
    expected (sane) semaptics, and migrate callers over to using them.
    01d1a791
hotplug.c 3.88 KB