summaryrefslogtreecommitdiff
path: root/src/tipwin.cc
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-05-18 00:17:31 +0000
committercorvid <devnull@localhost>2015-05-18 00:17:31 +0000
commitc004a99ed310f2e77d296845d9a4b5dcdaacc514 (patch)
treebd16be2353e3e8110a5a5182d819f5c892beb0cf /src/tipwin.cc
parent80e7f2497e783e4faad6df4de2e2c7e3ea20d901 (diff)
not use strcpy here
I see that openbsd likes to complain when it's used, and we certainly don't have a deep need for it in this case.
Diffstat (limited to 'src/tipwin.cc')
-rw-r--r--src/tipwin.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tipwin.cc b/src/tipwin.cc
index 01d9a2f4..7cfa0844 100644
--- a/src/tipwin.cc
+++ b/src/tipwin.cc
@@ -41,7 +41,7 @@ TipWin::TipWin() : Fl_Menu_Window(1, 1) // will autosize
{
bgcolor = fl_color_cube(FL_NUM_RED - 1, FL_NUM_GREEN - 1, FL_NUM_BLUE - 2);
recent = 0;
- strcpy(tip, "");
+ tip[0] = '\0';
cur_widget = NULL;
set_override(); // no border
end();