(PARSE_INT_FORMAT): note that shorts are actually transmitted as ints

(according to the integer protomotion rules) in variable arguments
lists.  Therefore, we should not call va_arg with short but rather
with int.  See <http://www.debian.org/Bugs/db/57/57919.html> for
original bug report


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7950 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-16 01:38:52 +00:00
parent 883af47726
commit 3b19f20311

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1995-1997, 1999 Kungliga Tekniska H<>gskolan
* Copyright (c) 1995-2000 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -265,7 +265,7 @@ append_char(struct state *state,
if (long_flag) \
res = (unsig long)va_arg(arg, unsig long); \
else if (short_flag) \
res = (unsig short)va_arg(arg, unsig short); \
res = (unsig short)va_arg(arg, unsig int); \
else \
res = (unsig int)va_arg(arg, unsig int)