summaryrefslogtreecommitdiff
path: root/epan/strutil.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-02-25 15:42:35 -0500
committerBill Meier <wmeier@newsguy.com>2014-02-25 20:46:49 +0000
commit11b5c15fdb815a2af400bfddef944dbac41a434a (patch)
treee7217ebcff4d4d9f7f95d0342b6776547e5537c3 /epan/strutil.c
parentc55c57ad72acda8cbce2841bc237f966bad5ae5b (diff)
downloadwireshark-11b5c15fdb815a2af400bfddef944dbac41a434a.tar.gz
Remove trailing whitespace
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/strutil.c')
-rw-r--r--epan/strutil.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/epan/strutil.c b/epan/strutil.c
index 0df9b515c9..b983b5cc9a 100644
--- a/epan/strutil.c
+++ b/epan/strutil.c
@@ -381,13 +381,13 @@ format_text_chr(const guchar *string, const size_t len, const guchar chr)
fmtbuf_len[idx] = INITIAL_FMTBUF_SIZE;
}
column = 0;
- while (string < stringend)
+ while (string < stringend)
{
/*
- * Is there enough room for this character,
+ * Is there enough room for this character,
* and also enough room for a terminating '\0'?
*/
- if (column+1 >= fmtbuf_len[idx])
+ if (column+1 >= fmtbuf_len[idx])
{
/*
* Double the buffer's size if it's not big enough.
@@ -400,17 +400,17 @@ format_text_chr(const guchar *string, const size_t len, const guchar chr)
}
c = *string++;
- if (g_ascii_isprint(c))
+ if (g_ascii_isprint(c))
{
fmtbuf[idx][column] = c;
column++;
- }
- else if (isspace(c))
+ }
+ else if (isspace(c))
{
fmtbuf[idx][column] = ' ';
column++;
- }
- else
+ }
+ else
{
fmtbuf[idx][column] = chr;
column++;