diff --git a/ChangeLog b/ChangeLog index a4c771067d..3dba48de5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-09-15 Asbjorn Pettersen + + * plug-ins/print/print-ps.c (ps_parameters): use g_strncasecmp() + instead of strncasecmp(). More portable. + 2000-09-15 Kevin Turner * app/gdisplay_color_ui.c (color_display_cancel_callback): diff --git a/plug-ins/print/print-ps.c b/plug-ins/print/print-ps.c index e2155d82f3..94614d5e75 100644 --- a/plug-ins/print/print-ps.c +++ b/plug-ins/print/print-ps.c @@ -132,7 +132,7 @@ ps_parameters(const printer_t *printer, /* I - Printer model */ if (sscanf(line, "*%s %[^/:]", lname, loption) != 2) continue; - if (strcasecmp(lname, name) == 0) + if (g_strcasecmp(lname, name) == 0) { valptrs[(*count)] = malloc(strlen(loption) + 1); strcpy(valptrs[(*count)], loption); @@ -705,7 +705,7 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */ if (line[0] != '*') continue; - if (strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL) + if (g_strncasecmp(line, "*OrderDependency:", 17) == 0 && order != NULL) { sscanf(line, "%*s%d", order); continue; @@ -713,8 +713,8 @@ ppd_find(const char *ppd_file, /* I - Name of PPD file */ else if (sscanf(line, "*%s %[^/:]", lname, loption) != 2) continue; - if (strcasecmp(lname, name) == 0 && - strcasecmp(loption, option) == 0) + if (g_strcasecmp(lname, name) == 0 && + g_strcasecmp(loption, option) == 0) { opt = strchr(line, ':') + 1; while (*opt == ' ' || *opt == '\t')