summaryrefslogtreecommitdiff
blob: 9e1067fa1dc1346e8dbf3c43fb12d1d9b80752dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/siod/siod.cc
+++ b/siod/siod.cc
@@ -459,7 +459,7 @@ char **siod_variable_generator(char *text,int length)
     matches = walloc(char *,siod_llength(lmatches)+1);
     for (l=lmatches,i=0; l; l=cdr(l),i++)
 	matches[i] = wstrdup(PNAME(car(l)));
-    matches[i] = '\0';
+    *matches[i] = '\0';
 
     return matches;
 }
@@ -498,7 +498,7 @@ char **siod_command_generator (char *text,int length)
     matches = walloc(char *,siod_llength(lmatches)+1);
     for (l=lmatches,i=0; l; l=cdr(l),i++)
 	matches[i] = wstrdup(PNAME(car(l)));
-    matches[i] = '\0';
+    *matches[i] = '\0';
 
     return matches;
 }