aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2018-08-07 11:38:23 +0200
committerMichael Buesch <m@bues.ch>2018-08-07 11:38:23 +0200
commit42cfd0fcbb7b7cc43ccbd7291b215a4fe97fcc79 (patch)
tree5c6503c85e54fcfb56f3766f44a6fc0ce27a07b1
parent7143567421453ed542d9f6c31050c606d90b1cf3 (diff)
downloadrazer-42cfd0fcbb7b7cc43ccbd7291b215a4fe97fcc79.tar.xz
razer-42cfd0fcbb7b7cc43ccbd7291b215a4fe97fcc79.zip
Avoid possible snprintf truncation warnings
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--librazer/librazer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/librazer/librazer.c b/librazer/librazer.c
index 43330b0..d69a5a6 100644
--- a/librazer/librazer.c
+++ b/librazer/librazer.c
@@ -1187,9 +1187,9 @@ void razer_generic_usb_gen_idstr(struct libusb_device *udev,
const char *serial,
char *idstr_buf)
{
- char devid[64];
+ char devid[96];
char serial_buf[64];
- char buspos[512];
+ char buspos[16];
char c;
size_t i;
unsigned int serial_index = 0;
bues.ch cgit interface