forked from osmocom/wireshark
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
This commit is contained in:
parent
061eb4a1c9
commit
cfca0020c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue