Skip to content
  • Qualys Security Advisory's avatar
    proc/whattime.c: Always initialize buf. · 00ab5f0b
    Qualys Security Advisory authored
    In the human_readable case; otherwise the strcat() that follows may
    append bytes to the previous contents of buf.
    
    Also, slightly enlarge buf, as it was a bit too tight.
    
    Could also replace all sprintf()s with snprintf()s, but all the calls
    here output a limited number of characters, so they should be safe.
    00ab5f0b