ossp-pkg/sa/sa.c 1.56 -> 1.57
--- sa.c 2002/03/07 11:23:33 1.56
+++ sa.c 2002/03/07 11:51:54 1.57
@@ -384,11 +384,11 @@
ctx.bufptr = buffer;
ctx.buflen = bufsize;
n = sa_mvxprintf(sa_mvsnprintf_cb, &ctx, format, ap);
+ if (n != -1 && ctx.buflen == 0)
+ n = -1;
+ if (n != -1)
+ *(ctx.bufptr) = '\0';
}
- if (n != -1 && ctx.buflen == 0)
- n = -1;
- if (n != -1)
- *(ctx.bufptr) = '\0';
return n;
}
|
|