about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 72a0c9c1f..f8d239458 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -566,7 +566,7 @@ wcs_nicechar(wchar_t c, size_t *widthp, char **swidep)
 	    return buf;
 	}
 	if (swidep)
-	    *swidep = buf + *widthp;
+	    *swidep = widthp ? buf + *widthp : buf;
 	return buf;
     }