]> git.deb.at Git - pkg/abook.git/blobdiff - misc.c
*** empty log message ***
[pkg/abook.git] / misc.c
diff --git a/misc.c b/misc.c
index 9a603dbf68a6341692fee646b358bc517f225f7d..22ebc800ef941cab85154079e42be606c7a2efb1 100644 (file)
--- a/misc.c
+++ b/misc.c
@@ -18,9 +18,7 @@
 #ifdef HAVE_CONFIG_H
 #      include "config.h"
 #endif
-#ifdef HANDLE_MULTIBYTE
-#      include <mbswidth.h>
-#endif
+#include <mbswidth.h>
 #include "misc.h"
 #include "xmalloc.h"
 
@@ -82,7 +80,7 @@ strtrim(char *s)
 #endif
 
 char *
-mkstr (const char *format, ... )
+strdup_printf (const char *format, ... )
 {
        MY_VA_LOCAL_DECL;
        size_t size = 100;
@@ -274,11 +272,7 @@ int
 strwidth(const char *s)
 {
        assert(s);
-#ifdef HANDLE_MULTIBYTE
-       return (int)mbswidth(s, 0);
-#else
-       return strlen(s);
-#endif
+       return mbswidth(s, 0);
 }
 
 int