From: Sami Kerola Date: Sun, 7 Jul 2013 19:54:46 +0000 (+0100) Subject: ul: use correct types X-Git-Tag: v2.24-rc1~432 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa971f7d584aa3964fb5a5b628f27985f05fe78c;p=thirdparty%2Futil-linux.git ul: use correct types Signed-off-by: Sami Kerola --- diff --git a/text-utils/ul.c b/text-utils/ul.c index 7b50ede509..26d2b172d2 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -463,11 +463,11 @@ static void iattr(void) { register int i; #ifdef __GNUC__ - register char *lbuf = __builtin_alloca((maxcol+1)*sizeof(char)); + register wchar_t *lbuf = __builtin_alloca((maxcol+1)*sizeof(wchar_t)); #else - char lbuf[BUFSIZ]; + wchar_t lbuf[BUFSIZ]; #endif - register char *cp = lbuf; + register wchar_t *cp = lbuf; for (i = 0; i < maxcol; i++) switch (obuf[i].c_mode) {