Skip to content
  • Alan Coopersmith's avatar
    Increase size of number buffer to fit all possible values · 6a902614
    Alan Coopersmith authored
    
    
    Clears gcc warning of:
    
    info.c: In function ‘DisplayProps’:
    info.c:214:44: warning: ‘snprintf’ output may be truncated before the
     last format character [-Wformat-truncation=]
           snprintf (number, sizeof(number), "%d", propnum);
                                                ^
    info.c:214:7: note: ‘snprintf’ output between 2 and 11 bytes into a
     destination of size 10
           snprintf (number, sizeof(number), "%d", propnum);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    6a902614