Changeset 989 for vendor/current/lib/replace/snprintf.c
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/snprintf.c
r988 r989 805 805 int signvalue = 0; 806 806 unsigned LLONG uvalue; 807 char convert[2 0];807 char convert[22+1]; /* 64-bit value in octal: 22 digits + \0 */ 808 808 int place = 0; 809 809 int spadlen = 0; /* amount to space pad */ … … 835 835 [uvalue % (unsigned)base ]; 836 836 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--; 839 839 convert[place] = 0; 840 840
Note:
See TracChangeset
for help on using the changeset viewer.