aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dw-hdfsee.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index c943cfdf..c1bb39cc 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -2626,9 +2626,12 @@ static void calibmode_press(DisplayWindow *dw, GdkEventButton *event)
if ( revmap_return_value == 0 ) {
fs = dfs;
ss = dss;
- snprintf(statusbar_string, 80,
- "Last clicked position: x: %i, y: %i, fs: %u, ss: %u,"
- " (panel %s)", x, y, fs, ss, p->name);
+ if ( snprintf(statusbar_string, 80,
+ "Last clicked position: x: %i, y: %i, fs: %u, ss: %u,"
+ " (panel %s)", x, y, fs, ss, p->name) != 0 )
+ {
+ ERROR("Panel name is too long for status bar.\n");
+ }
}
gtk_statusbar_push(GTK_STATUSBAR(dw->statusbar), cc, statusbar_string);
}