OSSP CVS Repository

ossp - Difference in ossp-pkg/cfg/cfg_syn.c versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/cfg/cfg_syn.c 1.21 -> 1.22

--- cfg_syn.c    2004/11/28 13:49:11     1.21
+++ cfg_syn.c    2004/11/28 14:17:52     1.22
@@ -185,14 +185,14 @@
 
     /* remember parsing error: part I (context part) */
     cfg_fmt_sprintf(ctx->err_buf, ctx->err_len,
-                    "line %d, column %d: `%s'",
+                    "line %d, column %d: `%s': ",
                     line, column, cpBuf);
     free(cpBuf);
 
     /* remember parsing error: part II (parsing part) */
     n = strlen(ctx->err_buf);
     va_start(ap, fmt);
-    cfg_fmt_vsprintf(ctx->err_buf+n, sizeof(ctx->err_len)-n, fmt, ap);
+    cfg_fmt_vsprintf(ctx->err_buf+n, ctx->err_len-n, fmt, ap);
     va_end(ap);
 
     return;

CVSTrac 2.0.1