(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:
		| @@ -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). |  * (Royal Institute of Technology, Stockholm, Sweden). | ||||||
|  * All rights reserved. |  * All rights reserved. | ||||||
|  *  |  *  | ||||||
| @@ -265,7 +265,7 @@ append_char(struct state *state, | |||||||
| if (long_flag) \ | if (long_flag) \ | ||||||
|      res = (unsig long)va_arg(arg, unsig long); \ |      res = (unsig long)va_arg(arg, unsig long); \ | ||||||
| else if (short_flag) \ | else if (short_flag) \ | ||||||
|      res = (unsig short)va_arg(arg, unsig short); \ |      res = (unsig short)va_arg(arg, unsig int); \ | ||||||
| else \ | else \ | ||||||
|      res = (unsig int)va_arg(arg, unsig int) |      res = (unsig int)va_arg(arg, unsig int) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Assar Westerlund
					Assar Westerlund