aboutsummaryrefslogtreecommitdiffstats
path: root/epan/column-utils.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-12-28 16:12:25 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2009-12-28 16:12:25 +0000
commita1fe9109144c77dd3b613609b9520e56b827f027 (patch)
tree2099b36ddd2903842d561fdc49a9f28406115809 /epan/column-utils.c
parent20cf48b1686467502b29273365a42746ccc7cf94 (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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31373 f5534014-38df-0310-8fa8-9805f1628bb7
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