From 17c715748d237af3d81148d9ca6c75e167ab17bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Wed, 12 Nov 2014 13:14:44 -0300 Subject: [PATCH] (driver.c) Fix invalid write --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver.c b/driver.c index c0d564696a..4cbc53fd18 100644 --- a/driver.c +++ b/driver.c @@ -219,7 +219,7 @@ const char* config_get_input_driver_options(void) input_options[offset] = '|'; offset += 1; } - input_options[input_options_len] = '\0'; + input_options[input_options_len - 1] = '\0'; return input_options; }