diff options
author | Sami Kerola | 2013-07-07 21:54:46 +0200 |
---|---|---|
committer | Karel Zak | 2013-07-09 14:25:36 +0200 |
commit | aa971f7d584aa3964fb5a5b628f27985f05fe78c (patch) | |
tree | b6a3fa2ef50bc85c414997d9e40c939a9b54a344 /text-utils/ul.c | |
parent | agetty: fix memory leak [clang-analyzer] (diff) | |
download | kernel-qcow2-util-linux-aa971f7d584aa3964fb5a5b628f27985f05fe78c.tar.gz kernel-qcow2-util-linux-aa971f7d584aa3964fb5a5b628f27985f05fe78c.tar.xz kernel-qcow2-util-linux-aa971f7d584aa3964fb5a5b628f27985f05fe78c.zip |
ul: use correct types
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index 7b50ede50..26d2b172d 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) { |