diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-06-14 00:24:39 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-06-14 00:24:39 +0000 |
commit | 9dd3dda4c9bc748cc422453dba6758cbb8dea922 (patch) | |
tree | 57ac3d09a4d9c6424963a6805df2818b7845e5e8 /packet-x11.c | |
parent | e544ab95c9e604328a1a10f553ac27fe522c63ba (diff) |
In "stringCopy()", make the character temporary unsigned, so that it
doesn't get sign-extended before being handed to "isgraph()".
svn path=/trunk/; revision=2065
Diffstat (limited to 'packet-x11.c')
-rw-r--r-- | packet-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-x11.c b/packet-x11.c index bdc087d01f..8d12261b79 100644 --- a/packet-x11.c +++ b/packet-x11.c @@ -2,7 +2,7 @@ * Routines for X11 dissection * Copyright 2000, Christophe Tronche <ch.tronche@computer.org> * - * $Id: packet-x11.c,v 1.4 2000/06/12 19:19:54 gram Exp $ + * $Id: packet-x11.c,v 1.5 2000/06/14 00:24:39 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -1032,7 +1032,7 @@ static void listOfSegment(int hf, int length) Note that "non-printable characters" may depend on your locale.... */ static void stringCopy(char *dest, const char *source, int length) { - char c; + u_char c; while(length--) { c = *source++; if (!isgraph(c) && c != ' ') c = '.'; |