summaryrefslogtreecommitdiffstats
path: root/input/storage.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/storage.c')
-rw-r--r--input/storage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input/storage.c b/input/storage.c
index 0ba49027..b20524d9 100644
--- a/input/storage.c
+++ b/input/storage.c
@@ -183,7 +183,7 @@ int store_device_info(bdaddr_t *src, bdaddr_t *dst, struct hidp_connadd_req *req
create_filename(filename, PATH_MAX, src, "input");
- size = 15 + 3 + 3 + 5 + (req->rd_size * 2) + 1 + 9;
+ size = 15 + 3 + 3 + 5 + (req->rd_size * 2) + 2 + 9;
str = g_try_malloc0(size);
if (!str)
return -ENOMEM;