diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-08-30 15:18:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-08-30 15:18:25 +0000 |
commit | 0564c9e999e37a6941c99848bc4f58e531ce6e7c (patch) | |
tree | 0276bce0a6f6e12317a581f64da603c446ed753f | |
parent | 4af9d9731744b496059acd32cbc98ecf2c896ea6 (diff) | |
download | zsh-0564c9e999e37a6941c99848bc4f58e531ce6e7c.tar.gz zsh-0564c9e999e37a6941c99848bc4f58e531ce6e7c.tar.xz zsh-0564c9e999e37a6941c99848bc4f58e531ce6e7c.zip |
23808: debugging for wcs_nicechar()
-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; |