diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Src/utils.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index b318de850..e861ef5bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-08-30 Peter Stephenson <pws@csr.com> + * 23808: Src/utils.c: debugging to try to isolate intermittent + problem in wcs_nicechar(). + * 23807: Src/Zle/complist.c, Src/Zle/zle_misc.c: interactive mode in completion was fairly seriously broken. diff --git a/Src/utils.c b/Src/utils.c index ce1a78218..c0081f8e1 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -552,8 +552,12 @@ wcs_nicechar(wchar_t c, size_t *widthp, char **swidep) if (swidep) *swidep = s; for (mbptr = mbstr; ret; s++, mbptr++, ret--) { + DPUTS(s >= buf + NICECHAR_MAX, + "BUG: buffer too small in wcs_nicechar"); if (imeta(*mbptr)) { *s++ = Meta; + DPUTS(s >= buf + NICECHAR_MAX, + "BUG: buffer too small for metafied char in wcs_nicechar"); *s = *mbptr ^ 32; } else { *s = *mbptr; |