From 42cfd0fcbb7b7cc43ccbd7291b215a4fe97fcc79 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Tue, 7 Aug 2018 11:38:23 +0200 Subject: Avoid possible snprintf truncation warnings Signed-off-by: Michael Buesch --- librazer/librazer.c | 4 ++-- 1 file 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; -- cgit v1.2.3