Changeset 989 for vendor/current/lib/replace
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- Location:
- vendor/current/lib/replace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/replace.h
r988 r989 426 426 427 427 #ifndef PRINTF_ATTRIBUTE 428 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )428 #ifdef HAVE___ATTRIBUTE__ 429 429 /** Use gcc attribute to check printf fns. a1 is the 1-based index of 430 430 * the parameter containing the format, and a2 the index of the first … … 438 438 439 439 #ifndef _DEPRECATED_ 440 #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )440 #ifdef HAVE___ATTRIBUTE__ 441 441 #define _DEPRECATED_ __attribute__ ((deprecated)) 442 442 #else -
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.