Introduction
Introduction Statistics Contact Development Disclaimer Help
Removing unneeded string. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfri…
Log
Files
Refs
Tags
README
LICENSE
---
commit 72fa3a9a1750ffa0b5fc2f4fb33f7daafe57a368
parent 136e096d34f8f7751e8b9d0f10c0c51c223f4894
Author: Christoph Lohmann <[email protected]>
Date: Fri, 11 Mar 2011 23:53:26 +0100
Removing unneeded string.
Diffstat:
M ind.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/ind.c b/ind.c
@@ -279,10 +279,8 @@ smprintf(char *fmt, ...)
char *ret;
int size;
- ret = "";
-
va_start(fmtargs, fmt);
- size = vsnprintf(ret, 0, fmt, fmtargs);
+ size = vsnprintf(NULL, 0, fmt, fmtargs);
va_end(fmtargs);
ret = gmallocz(++size, 2);
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.