summaryrefslogtreecommitdiff
blob: 1a60142b8689da1191d26412236e3bbef074d461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/udev_utils_string.c b/udev_utils_string.c
index e3dc137..0995da5 100644
--- a/udev_utils_string.c
+++ b/udev_utils_string.c
@@ -52,7 +52,7 @@ void remove_trailing_chars(char *path, char c)
 
 size_t path_encode(char *s, size_t len)
 {
-	char t[(len * 3)+1];
+	char t[(len * 4)+1];
 	size_t i, j;
 
 	t[0] = '\0';