summaryrefslogtreecommitdiffstats
path: root/src/pacman/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/package.c')
-rw-r--r--src/pacman/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/package.c b/src/pacman/package.c
index 145e5bbe..437e4420 100644
--- a/src/pacman/package.c
+++ b/src/pacman/package.c
@@ -94,7 +94,7 @@ void dump_pkg_full(pmpkg_t *pkg, int level)
/* printed using a variable to make i18n safe */
printf("%s", descheader);
- indentprint(alpm_pkg_get_desc(pkg), strlen(descheader));
+ indentprint(alpm_pkg_get_desc(pkg), mbstowcs(NULL, descheader, 0));
printf("\n");
/* Print additional package info if info flag passed more than once */
@@ -134,7 +134,7 @@ void dump_pkg_sync(pmpkg_t *pkg, const char *treename)
/* printed using a variable to make i18n safe */
printf("%s", descheader);
- indentprint(alpm_pkg_get_desc(pkg), strlen(descheader));
+ indentprint(alpm_pkg_get_desc(pkg), mbstowcs(NULL, descheader, 0));
printf("\n");
if (md5sum != NULL && md5sum[0] != '\0') {