summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJosiah Worcester2011-06-09 00:52:46 +0200
committerKarel Zak2011-06-14 13:59:01 +0200
commiteab0c74daa4f5f77ef524565a228f49465150f88 (patch)
tree99e54f9576c0cc485c743b3ccd50eeef3931cc68 /lib
parentchecktty: Use NGROUPS_MAX instead of NGROUPS (diff)
downloadkernel-qcow2-util-linux-eab0c74daa4f5f77ef524565a228f49465150f88.tar.gz
kernel-qcow2-util-linux-eab0c74daa4f5f77ef524565a228f49465150f88.tar.xz
kernel-qcow2-util-linux-eab0c74daa4f5f77ef524565a228f49465150f88.zip
lib: [tt.c] Fix mbs_width macro for systems without WIDECHAR
Signed-off-by: Josiah Worcester <josiahw@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/tt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tt.c b/lib/tt.c
index 7cbbce3c2..1929a48cf 100644
--- a/lib/tt.c
+++ b/lib/tt.c
@@ -52,7 +52,7 @@ static const struct tt_symbols utf8_tt_symbols = {
};
#else /* !HAVE_WIDECHAR */
-# define mbs_width strlen(_s)
+# define mbs_width(_s) strlen(_s)
#endif /* !HAVE_WIDECHAR */
#define is_last_column(_tb, _cl) \