summaryrefslogtreecommitdiff
path: root/gui/comp.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2017-05-07 00:03:08 (GMT)
committerWerner Almesberger <werner@almesberger.net>2017-05-07 00:03:08 (GMT)
commit076f5639036b136fe237856390c66b7fed18ebaf (patch)
treeded5cbfd9a0a5647a413052f45fd87bd30cd06ad /gui/comp.c
parent0f6250a1ebe559e66e5d0ae19bdeaaad6144b7ef (diff)
downloadeeshow-076f5639036b136fe237856390c66b7fed18ebaf.zip
eeshow-076f5639036b136fe237856390c66b7fed18ebaf.tar.gz
eeshow-076f5639036b136fe237856390c66b7fed18ebaf.tar.bz2
gui/comp.c (hover_comp): don't use externally provided string as format
Diffstat (limited to 'gui/comp.c')
-rw-r--r--gui/comp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/comp.c b/gui/comp.c
index 095c7f7..45a1de0 100644
--- a/gui/comp.c
+++ b/gui/comp.c
@@ -1,8 +1,8 @@
/*
* gui/comp.c - Component pop-up
*
- * Written 2016 by Werner Almesberger
- * Copyright 2016 by Werner Almesberger
+ * Written 2016-2017 by Werner Almesberger
+ * Copyright 2016-2017 by Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -169,7 +169,7 @@ static bool hover_comp(void *user, bool on, int dx, int dy)
add_pop_header(gui, COMP_W, ctx->ref);
for (item = ctx->items; item; item = item->next)
add_pop_item(gui, comp_click, (void *) item, COMP_W, 0,
- item->tag);
+ "%s", item->tag);
add_pop_frame(gui);
place_pop(gui, &ctx->bbox);