From: Thomas Adam Date: Mon, 30 Nov 2009 00:50:37 +0000 (+0000) Subject: Fix compiling with --disable-locale X-Git-Tag: release-0.16~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;ds=sidebyside;h=19267b94dc72a500a7760aed2ad1ee8705932775;p=ncmpc.git Fix compiling with --disable-locale locale_width() was previously broken when trying to compile ncmpc without locale support. This was due to stale code in an #if block. Signed-off-by: Thomas Adam --- diff --git a/src/charset.c b/src/charset.c index 01d381b..1f51538 100644 --- a/src/charset.c +++ b/src/charset.c @@ -94,7 +94,7 @@ locale_width(const char *p) return width; #else - return strlen(str); + return strlen(p); #endif }