summaryrefslogtreecommitdiff
path: root/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter.c b/filter.c
index e60e083..54fa50c 100644
--- a/filter.c
+++ b/filter.c
@@ -362,7 +362,7 @@ int filter_fix_linedirs (struct filter *chain)
"<stdout>") == 0) {
/* Adjust the line directives. */
in_gen = true;
- sprintf (buf, "#line %d \"%s\"\n",
+ snprintf (buf, readsz, "#line %d \"%s\"\n",
lineno + 1, fname);
free (fname);