nullmailer icon indicating copy to clipboard operation
nullmailer copied to clipboard

lib/itoa: fix array subscript below bounds warning

Open haubi opened this issue 5 years ago • 0 comments

Trivial fix for this warning seen with gcc-8.2:

itoa.cc: In function 'const char* itoa(long int, int)':
itoa.cc:18:32: warning: array subscript -1 is below array bounds of 'char [64]' [-Warray-bounds]
   while(digits > 0 && ptr > buf-1)
                             ~~~^~

haubi avatar Feb 26 '19 16:02 haubi