aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-12-28 16:12:25 +0000
committerBill Meier <wmeier@newsguy.com>2009-12-28 16:12:25 +0000
commitcfca0020c5f0b8f5bc0788e1988f093afee375ef (patch)
tree2099b36ddd2903842d561fdc49a9f28406115809 /epan/column-utils.c
parent061eb4a1c9e79d07f0398cb06bf28312f2b15b2f (diff)
From Jakub Zawadzki: remove double NUL termination.
From me: fix a 3rd instance. See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3339 svn path=/trunk/; revision=31373
Diffstat (limited to 'epan/column-utils.c')
-rw-r--r--epan/column-utils.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/column-utils.c b/epan/column-utils.c
index a3b93902fc..cdac5087c3 100644
--- a/epan/column-utils.c
+++ b/epan/column-utils.c
@@ -288,7 +288,6 @@ col_do_append_sep_va_fstr(column_info *cinfo, gint el, const gchar *separator,
}
}
g_vsnprintf(&cinfo->col_buf[i][len], max_len - len, format, ap);
- cinfo->col_buf[i][max_len-1] = 0;
}
}
}
@@ -358,7 +357,6 @@ col_prepend_fstr(column_info *cinfo, gint el, const gchar *format, ...)
orig = orig_buf;
}
g_vsnprintf(cinfo->col_buf[i], max_len, format, ap);
- cinfo->col_buf[i][max_len - 1] = '\0';
/*
* Move the fence, unless it's at the beginning of the string.
@@ -400,7 +398,6 @@ col_prepend_fence_fstr(column_info *cinfo, gint el, const gchar *format, ...)
orig = orig_buf;
}
g_vsnprintf(cinfo->col_buf[i], max_len, format, ap);
- cinfo->col_buf[i][max_len - 1] = '\0';
/*
* Move the fence if it exists, else create a new fence at the