forked from osmocom/wireshark
Fix some errors from the previous commit.
Pro tip: if you're modifying GTK+ code, make sure you explicitly configure to build the GTK+ version. Change-Id: Ia24321a5037dff67d9acf1444fa0b74f5aed089e Reviewed-on: https://code.wireshark.org/review/18371 Reviewed-by: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
10ca4c7527
commit
53d3e3c25e
|
@ -529,7 +529,7 @@ static int iax2_packet_add_info(GtkWidget *list, user_data_t * user_data,
|
|||
tm_tmp->tm_sec,
|
||||
msecs);
|
||||
} else {
|
||||
g_snprintf(timeStr,sizeof(timeStr),"XX/XX/XXXX XX:XX:XX.XXX",
|
||||
g_snprintf(timeStr,sizeof(timeStr),"XX/XX/XXXX XX:XX:XX.XXX");
|
||||
}
|
||||
|
||||
/* Default to using black on white text if nothing below overrides it */
|
||||
|
|
|
@ -1303,7 +1303,7 @@ channel_draw(rtp_channel_info_t *rci)
|
|||
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_view_as_time_of_day))) {
|
||||
seconds = rci->start_time_abs.secs + i * MULT / sample_rate;
|
||||
timestamp = localtime(&seconds);
|
||||
if (timestamp != NULL
|
||||
if (timestamp != NULL)
|
||||
g_snprintf(label_string, MAX_TIME_LABEL, "%02d:%02d:%02d", timestamp->tm_hour, timestamp->tm_min, timestamp->tm_sec);
|
||||
else
|
||||
g_snprintf(label_string, MAX_TIME_LABEL, "XX:XX:XX");
|
||||
|
|
Loading…
Reference in New Issue