summaryrefslogtreecommitdiff
path: root/src/asprintf.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert previousChristos Zoulas2022-09-241-7/+1
|
* mdd build glue, bump versionChristos Zoulas2022-09-241-1/+7
|
* Remove trailing whitespaceChristos Zoulas2018-09-091-3/+3
| | | | | XXX: We can't do this yet from magic files because trailing whitespace is significant.
* mingw32 and escaping fixesChristos Zoulas2010-07-211-3/+1
|
* fix include files.FILE5_00Christos Zoulas2009-02-031-3/+1
|
* make sure that we always include "file.h" first which includes config.hChristos Zoulas2008-11-041-0/+6
| | | | and add rcsid's to all files.
* Replace use of (v)snprintf with (v)asprintf. This has several advantages:Reuben Thomas2008-02-191-0/+43
1. (Mostly) easier to program with as the allocation is done for you. (Sometimes it's a little more complicated to get the deallocation right). The amount of code removed as a result by this commit is greater than the amount introduced (excluding the (v)asprintf implementation). 2. Safer: no buffer overflows. 3. Works on all platforms: BSD-licensed mature xnprintf code used (I've been using this for some years in Zile with no problems). No more overflows due to the previous bogus snprintf/vsnprintf fallbacks. Also add and use a MAX() macro in the same vein as MIN().