Ignore:
Timestamp:
Nov 25, 2016, 8:04:54 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/lib/replace/snprintf.c

    r988 r989  
    805805        int signvalue = 0;
    806806        unsigned LLONG uvalue;
    807         char convert[20];
     807        char convert[22+1]; /* 64-bit value in octal: 22 digits + \0 */
    808808        int place = 0;
    809809        int spadlen = 0; /* amount to space pad */
     
    835835                        [uvalue % (unsigned)base  ];
    836836                uvalue = (uvalue / (unsigned)base );
    837         } while(uvalue && (place < 20));
    838         if (place == 20) place--;
     837        } while(uvalue && (place < sizeof(convert)));
     838        if (place == sizeof(convert)) place--;
    839839        convert[place] = 0;
    840840
Note: See TracChangeset for help on using the changeset viewer.