aboutsummaryrefslogtreecommitdiff
path: root/bat_tray.c
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 19:22:47 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-09-01 19:22:47 +1200
commit841445fb7a482b9c1ed9eca896d308afab4316d8 (patch)
tree040506ac1a752aa85e61a542f736e5c6ea7305ca /bat_tray.c
parentdec1efba06aeadcd9a4f13e8591f2efa016a24a0 (diff)
downloadparamano-841445fb7a482b9c1ed9eca896d308afab4316d8.tar.xz
Various buffer overflow fixes
Diffstat (limited to 'bat_tray.c')
-rw-r--r--bat_tray.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bat_tray.c b/bat_tray.c
index 3d01b85..a848278 100644
--- a/bat_tray.c
+++ b/bat_tray.c
@@ -144,6 +144,7 @@ static void update_tooltip_cache()
break;
}
strncpy(tooltip_text, msg, sizeof(tooltip_text));
+ tooltip_text[sizeof(tooltip_text)-1] = '\0';
}