40 lines
1.2 KiB
Text
40 lines
1.2 KiB
Text
$NetBSD: patch-ac,v 1.1 2004/08/04 20:44:34 agc Exp $
|
|
|
|
--- Database/cell.c 2004/08/04 19:39:39 1.1
|
|
+++ Database/cell.c 2004/08/04 20:40:59
|
|
@@ -1319,7 +1319,7 @@
|
|
}
|
|
|
|
char *
|
|
-strcasestr (char *str1, char *str2)
|
|
+abs_strcasestr (char *str1, char *str2)
|
|
{
|
|
char *s1;
|
|
char *s2;
|
|
@@ -1367,7 +1367,7 @@
|
|
return -1;
|
|
if (!strcmp (oldname, newname))
|
|
return 0;
|
|
- if (strcasestr (cell->formula, oldname) == NULL)
|
|
+ if (abs_strcasestr (cell->formula, oldname) == NULL)
|
|
return 0;
|
|
|
|
diffsize = strlen (oldname) - strlen (newname);
|
|
@@ -1375,7 +1375,7 @@
|
|
absmalloc ((strlen (oldname) + 2) * sizeof (char), "cell_chgwksname:old");
|
|
sprintf (old, "%s!", oldname);
|
|
|
|
- pos = strcasestr (cell->formula, old);
|
|
+ pos = abs_strcasestr (cell->formula, old);
|
|
while (pos != NULL)
|
|
{
|
|
len = strlen (cell->formula);
|
|
@@ -1388,7 +1388,7 @@
|
|
sprintf (newformula, "%s%s%s", cell->formula, newname, end);
|
|
absfree (cell->formula, "cell_chgwksname:cell->formula");
|
|
cell->formula = newformula;
|
|
- end = strcasestr (cell->formula, old);
|
|
+ end = abs_strcasestr (cell->formula, old);
|
|
if (end > cell->formula + i)
|
|
pos = end;
|
|
else
|