1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
--- Robot/history.c.orig 2009-04-11 22:11:08.000000000 +0200
+++ Robot/history.c 2009-04-11 22:11:30.000000000 +0200
@@ -248,7 +248,7 @@
if (text[i] == '^') {
index = i;
strncpy(htext1, text + 1, index - 1);
- htext1[index - 1] = (char) NULL;
+ htext1[index - 1] = 0;
break;
}
}
@@ -258,7 +258,7 @@
}
strcpy(htext2, text + index + 1);
if (htext2[strlen(htext2) - 1] == '^') {
- htext2[strlen(htext2) - 1] = (char) NULL;
+ htext2[strlen(htext2) - 1] = 0;
}
/* now try to find it in the previous string */
sprintf(htext3, "%s",
@@ -271,7 +271,7 @@
/* think we found the string */
if (i > 0) {
strncpy(htext4, htext3, i);
- htext4[i] = (char) NULL;
+ htext4[i] = 0;
}
else{
strcpy(htext4, "");
|