summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2010-04-01BR2979629: vsnprintf: Use nasm_mallocCyrill Gorcunov1-7/+5
There is no nasm_malloc_error helper anymore. Use nasm_error instead. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2010-04-01vsnprintf: Style nitfixCyrill Gorcunov1-14/+13
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2009-08-10Add strlcpy() functionH. Peter Anvin1-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>
2008-06-09Move all the SAA code out of nasmlibH. Peter Anvin1-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.
2007-10-19Formatting: kill off "stealth whitespace"H. Peter Anvin1-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.
2007-10-02Portability fixesH. Peter Anvin2-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.)
2007-09-28lib/vsnprintf.c: correct boundary conditionsH. Peter Anvin1-6/+6
Correct the boundary conditions in lib/vsnprintf.c; as it was we could have an undetected one-byte overwrite.
2007-09-28Add substitutes for snprintf() and vsnprintf()H. Peter Anvin2-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.