From 62fe8e1a5caa605fb77dabc01899fc9b5053b5eb Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 7 Jan 2011 10:20:53 -0500 Subject: - also always make sure to hex-encode newline other whitespace values --- gdbmdump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdbmdump.c') diff --git a/gdbmdump.c b/gdbmdump.c index afd177a..8aa8be5 100644 --- a/gdbmdump.c +++ b/gdbmdump.c @@ -1,5 +1,5 @@ /* - * Copyright 2008,2010 Red Hat, Inc. + * Copyright 2008,2010,2011 Red Hat, Inc. * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,8 +66,7 @@ dump_entry(datum key, datum value) putchar(' '); for (i = 0; i < key.dsize; i++) { if (isprint(key.dptr[i]) && - (key.dptr[i] != ' ') && - (key.dptr[i] != '\t') && + !isspace(key.dptr[i]) && (key.dptr[i] != '\\')) { putchar(key.dptr[i]); } else { -- cgit