Commit 3f616a4f authored by Miguel de Icaza's avatar Miguel de Icaza Committed by Arturo Espinosa
Browse files

Use g_strncasecmp here.

1999-03-11  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* ms-excel.c (find_workbook): Use g_strncasecmp here.
parent 7c689c4d
1999-03-11 Miguel de Icaza <miguel@nuclecu.unam.mx>
* ms-excel.c (find_workbook): Use g_strncasecmp here.
1999-03-10 Michael Meeks <michael@imaginator.com>
* ms-formula.c: Inserted all the statistics formulae from
......
......@@ -1580,8 +1580,8 @@ find_workbook (MS_OLE * ptr)
/*
* printf ("Checking '%s'\n", d->name);
*/
hit |= (strncasecmp (d->name, "book", 4) == 0);
hit |= (strncasecmp (d->name, "workbook", 8) == 0);
hit |= (g_strncasecmp (d->name, "book", 4) == 0);
hit |= (g_strncasecmp (d->name, "workbook", 8) == 0);
if (hit) {
MS_OLE_STREAM *stream ;
printf ("Found Excel Stream : %s\n", d->name);
......
......@@ -1580,8 +1580,8 @@ find_workbook (MS_OLE * ptr)
/*
* printf ("Checking '%s'\n", d->name);
*/
hit |= (strncasecmp (d->name, "book", 4) == 0);
hit |= (strncasecmp (d->name, "workbook", 8) == 0);
hit |= (g_strncasecmp (d->name, "book", 4) == 0);
hit |= (g_strncasecmp (d->name, "workbook", 8) == 0);
if (hit) {
MS_OLE_STREAM *stream ;
printf ("Found Excel Stream : %s\n", d->name);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment