summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2008-02-23 09:58:03 -0700
committerEric Blake <ebb9@byu.net>2008-02-23 09:58:03 -0700
commit9d400bc11d96c313d041e73b8f7b9a2d069d1ae5 (patch)
tree41bbf36cbf50bf93103f9e2c9794f5917317a079 /src/input.c
parentc91769acf89e163c06e86be0f17022572f33bbab (diff)
downloadm4-9d400bc11d96c313d041e73b8f7b9a2d069d1ae5.tar.gz
Use size_t consistently for string length truncation.
* src/m4.h (max_debug_argument_length): Change type to size_t. (shipout_string_trunc, arg_print): Change parameter type. * src/debug.c (trace_format, trace_pre): Adjust all callers. * src/input.c (input_print): Likewise. * src/m4.c (max_debug_argument_length, main): Likewise. * src/macro.c (arg_print): Likewise. * src/output.c (shipout_string_trunc): Likewise. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index e2d332a5..9d8b8f39 100644
--- a/src/input.c
+++ b/src/input.c
@@ -680,7 +680,7 @@ pop_wrapup (void)
void
input_print (struct obstack *obs, const input_block *input)
{
- int maxlen = max_debug_argument_length;
+ size_t maxlen = max_debug_argument_length;
token_chain *chain;
assert (input);