Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/byacc/dist Use a format string
details: https://anonhg.NetBSD.org/src/rev/819666f5b375
branches: trunk
changeset: 335370:819666f5b375
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Jan 04 19:30:26 2015 +0000
description:
Use a format string
diffstat:
external/bsd/byacc/dist/reader.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r a67cf226d256 -r 819666f5b375 external/bsd/byacc/dist/reader.c
--- a/external/bsd/byacc/dist/reader.c Sun Jan 04 19:25:32 2015 +0000
+++ b/external/bsd/byacc/dist/reader.c Sun Jan 04 19:30:26 2015 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: reader.c,v 1.11 2015/01/04 01:34:20 christos Exp $ */
+/* $NetBSD: reader.c,v 1.12 2015/01/04 19:30:26 joerg Exp $ */
/* Id: reader.c,v 1.58 2014/10/06 22:15:08 tom Exp */
#include "defs.h"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: reader.c,v 1.11 2015/01/04 01:34:20 christos Exp $");
+__RCSID("$NetBSD: reader.c,v 1.12 2015/01/04 19:30:26 joerg Exp $");
/* The line size must be a positive integer. One hundred was chosen */
/* because few lines in Yacc input grammars exceed 100 characters. */
@@ -2674,7 +2674,7 @@
char *l_cptr = l_line + (cptr - line);
syntax_error(l_lineno, l_line, l_cptr);
}
- msprintf(code_mstr, loc);
+ msprintf(code_mstr, "%s", loc);
cptr += 2;
goto loop;
}
Home |
Main Index |
Thread Index |
Old Index