diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-05 09:55:04 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-05 09:55:04 -0800 |
commit | 3a28a2a0146c4979281ffea641dede9a32df08f9 (patch) | |
tree | 268539a149b5fa1dd582dfb35116b5b5b38b5a07 /cppsetup.c | |
parent | 639071ff3446b0df53078be1ff5820c812313aa7 (diff) |
Convert more sprintf calls to snprintf
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'cppsetup.c')
-rw-r--r-- | cppsetup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ my_if_errors (IfParser *ip, const char *cp, const char *expecting) int prefixlen; int i; - sprintf (prefix, "\"%s\":%d", filename, lineno); + snprintf (prefix, sizeof(prefix), "\"%s\":%d", filename, lineno); prefixlen = strlen(prefix); fprintf (stderr, "%s: %s", prefix, pd->line); i = cp - pd->line; |