Source

XEmacs / lwlib / lwlib-fonts.c

Diff from to

lwlib/lwlib-fonts.c

   int count = 0;
   char *pos = name;
   /* extra parens shut up gcc */
-  while ((pos = index (pos, '-')))
+  while ((pos = strchr (pos, '-')))
     {
       count++;
       pos++;
   if (count == 14		/* fully-qualified XLFD */
       || (count < 14		/* heuristic for wildcarded XLFD */
 	  && count >= 5
-	  && index (name, '*')))
+	  && strchr (name, '*')))
     res = XftFontOpenXlfd (dpy, DefaultScreen (dpy), name);
   else
     res = XftFontOpenName (dpy, DefaultScreen (dpy), name);