summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/libasprintf/printf-args.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-11-17 15:34:21 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:11:18 +0200
commit633ad4418ab3693ba8d05c4027be6ede0361c9f4 (patch)
treec7293544627db2e02d3eaada0453f3de1219958d /gettext-runtime/libasprintf/printf-args.c
parentf69ac5b2c0d5f4d386d7e2afe0d5650e8b104d28 (diff)
downloadexternal_gettext-633ad4418ab3693ba8d05c4027be6ede0361c9f4.zip
external_gettext-633ad4418ab3693ba8d05c4027be6ede0361c9f4.tar.gz
external_gettext-633ad4418ab3693ba8d05c4027be6ede0361c9f4.tar.bz2
Protect against address arithmetic overflow.
Diffstat (limited to 'gettext-runtime/libasprintf/printf-args.c')
-rw-r--r--gettext-runtime/libasprintf/printf-args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gettext-runtime/libasprintf/printf-args.c b/gettext-runtime/libasprintf/printf-args.c
index f391974..f6f3219 100644
--- a/gettext-runtime/libasprintf/printf-args.c
+++ b/gettext-runtime/libasprintf/printf-args.c
@@ -29,7 +29,7 @@ STATIC
int
printf_fetchargs (va_list args, arguments *a)
{
- unsigned int i;
+ size_t i;
argument *ap;
for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++)