return buf, not doprint's result

This commit is contained in:
Charles Forsyth 2015-10-04 21:51:41 +01:00
parent 844c96ed07
commit f287341675
1 changed files with 1 additions and 1 deletions

View File

@ -100,5 +100,5 @@ smprint(char *fmt, ...)
va_end(temp);
va_end(arg);
printcol = scol;
return strdup(out);
return strdup(buf);
}