summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* BR2979629: vsnprintf: Use nasm_mallocCyrill Gorcunov2010-04-011-7/+5
| | | | | | | There is no nasm_malloc_error helper anymore. Use nasm_error instead. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* vsnprintf: Style nitfixCyrill Gorcunov2010-04-011-14/+13
| | | | Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
* Add strlcpy() functionH. Peter Anvin2009-08-101-0/+53
| | | | | | | Add strlcpy() function and implementation, and use configure to detect if strlcpy() is natively available on the system. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Move all the SAA code out of nasmlibH. Peter Anvin2008-06-091-2/+0
| | | | | | Move all the SAA code out of nasmlib; it's not used by anything than nasm itself. Cleaning out the kitchen sink known as nasmlib is a good thing, too.
* Formatting: kill off "stealth whitespace"H. Peter Anvin2007-10-191-1/+0
| | | | | "Stealth whitespace" makes it harder to read diffs, and just generally cause unwanted weirdness. Do a source-wide pass to get rid of it.
* Portability fixesH. Peter Anvin2007-10-022-0/+4
| | | | | | | | | Concentrate compiler dependencies to compiler.h; make sure compiler.h is included first in every .c file (since some prototypes may depend on the presence of feature request macros.) Actually use the conditional inclusion of various functions (totally broken in previous releases.)
* lib/vsnprintf.c: correct boundary conditionsH. Peter Anvin2007-09-281-6/+6
| | | | | Correct the boundary conditions in lib/vsnprintf.c; as it was we could have an undetected one-byte overwrite.
* Add substitutes for snprintf() and vsnprintf()H. Peter Anvin2007-09-282-0/+73
To deal with fools^Wpeople trying to keep really old systems alive, create a proper framework for substitution functions, and make it possible to deal with the lack of snprintf/vsnprintf in particular.