aboutsummaryrefslogtreecommitdiffstats
path: root/Str.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-08-30Fix potential heap buffer corruption due to StrgrowKuang-che Wu1-2/+2
If Str.length = 5 and area_size = 6, the result of Strgrow is still area_size = 6. For such case, Strcat_char and Strinsert_char will overflow one byte.
2015-08-11Use fgetc in while loops, use int instead of charDavid Crosby1-10/+4
2015-07-25Strnew_charp and co do not modify the char* inputRichard Quirk1-8/+8
2015-01-15Do not use C99 printf format specifiers and asprintfTatsuya Kinoshita1-20/+96
2015-01-15Correct printf arguments and use asprintfScarlett1-96/+20
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2 * Str.c: Use asprintf() instead of rolling our own printf string length detection. * cookie.c: Pass the char pointer in the string struct to printf %s instead of the string struct itself. Print time_t using %lld instead of %ld to allow for 64-bit time_t. * main.c: Print a long int using the correct format specifier. * map.c: Print size_t using the correct format specifier.
2013-08-04Check length for Strchop()Tatsuya Kinoshita1-2/+2
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+557