diff options
author | Dave Beckett <dave@dajobe.org> | 2014-05-09 08:30:00 -0700 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2014-05-09 08:30:00 -0700 |
commit | 2db263a313ceb98007f6eda6692f40d2a749a147 (patch) | |
tree | a0d503a0d6d410193f60b1c33515cdc6e2f00028 /src/snprintf.c | |
parent | 8f603fa1b81801ef33a7329abe84024eb7056119 (diff) | |
download | raptor-2db263a313ceb98007f6eda6692f40d2a749a147.tar.gz |
(raptor_locator_format): Add a NUL to terminate output string.
See librdf commit aa3bf4ccf4cc9381a1c198566428812af28944de that works
around this.
Diffstat (limited to 'src/snprintf.c')
-rw-r--r-- | src/snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snprintf.c b/src/snprintf.c index 922ebf99..96b8be57 100644 --- a/src/snprintf.c +++ b/src/snprintf.c @@ -303,6 +303,8 @@ static const char digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; * If @buffer is NULL or the @bufsize is too small, the number of * bytes needed (excluding NUL) is returned and no formatting is done. * + * NOTE: Does NOT add a '\0' at end of string. + * * Return value: number of bytes needed or written (excluding NUL) or 0 on failure */ size_t |