diff options
author | John Gilmore <gnu@cygnus> | 1992-05-01 09:53:13 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-05-01 09:53:13 +0000 |
commit | 7e7e2d40c1404de249d9f071d859d8c376e92bda (patch) | |
tree | 2e9538003edb5daa498e4e408951c7a4211b1fb7 /gdb/utils.c | |
parent | fcdb113e5707f165e91cd75cb3dffa78c4f043ca (diff) | |
download | gdb-7e7e2d40c1404de249d9f071d859d8c376e92bda.zip gdb-7e7e2d40c1404de249d9f071d859d8c376e92bda.tar.gz gdb-7e7e2d40c1404de249d9f071d859d8c376e92bda.tar.bz2 |
One more try...
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 14ff2fc..bb01776 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -815,6 +815,8 @@ printchar (c, stream, quoter) int quoter; { + c &= 0xFF; /* Avoid sign bit follies */ + if ( c < 0x20 || /* Low control chars */ (c >= 0x7F && c < 0xA0) || /* DEL, High controls */ (sevenbit_strings && c >= 0x80)) { /* high order bit set */ |