From 19267b94dc72a500a7760aed2ad1ee8705932775 Mon Sep 17 00:00:00 2001 From: Thomas Adam Date: Mon, 30 Nov 2009 00:50:37 +0000 Subject: [PATCH] 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 --- src/charset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- 2.30.2