diff options
author | Amadeusz Sławiński <amade@asmblr.net> | 2014-04-25 14:24:51 +0200 |
---|---|---|
committer | Amadeusz Sławiński <amade@asmblr.net> | 2014-04-25 14:24:51 +0200 |
commit | e9e78d9b2b413337d9f783ad9a514c8accd25ac9 (patch) | |
tree | 80f0773c1fc14ab95c1ce3c713fe07621e4d84fd /src/fileio.c | |
parent | fe0669d90d587a00f863e0a8f38c9f462a833554 (diff) | |
download | screen-e9e78d9b2b413337d9f783ad9a514c8accd25ac9.tar.gz |
fix-utf8-status-padding-bug
Ensure that multibyte UTF8 characters are counted correctly when
calculating and displaying the caption and hardstatus lines.
Based on an earlier version by Kees Cook <address@hidden>
Signed-off-by: Dustin Kirkland <address@hidden>
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 978f07b..05df0c4 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -80,8 +80,6 @@ register char *str1, *str2; } else { - if (len1 == 0) - return 0; if ((cp = malloc((unsigned) len1 + add_colon + 1)) == NULL) Panic(0, "%s", strnomem); cp[len1 + add_colon] = '\0'; |