OSSP CVS Repository

ossp - Difference in ossp-pkg/sa/sa.c versions 1.56 and 1.57
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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;
 }
 

CVSTrac 2.0.1