summaryrefslogtreecommitdiff
blob: 042d012d162141b23e36c024605a004f11352f5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/perform/pio_engine.c
+++ b/perform/pio_engine.c
@@ -454,7 +454,7 @@
         subdir = (user ? user : login);
 
         if (subdir) {
-            for (i = 0; i < size && prefix[i]; i++)
+            for (i = 0; i < size-1 && prefix[i]; i++)
                 fullname[i] = prefix[i];
 
             fullname[i++] = '/';
--- a/perform/sio_engine.c
+++ b/perform/sio_engine.c
@@ -353,7 +353,7 @@
     subdir = (user ? user : login);
 
     if (subdir) {
-        for (i = 0; i < size && prefix[i]; i++)
+        for (i = 0; i < size-1 && prefix[i]; i++)
         fullname[i] = prefix[i];
 
         fullname[i++] = '/';