]> andersk Git - moira.git/blobdiff - clients/mmoira/formup.c
Used /bin/sh format instead of /bin/csh format, by accident.
[moira.git] / clients / mmoira / formup.c
index 43bfde85a21e0f613b9eaee4aa536b41a4ea8d77..cabf9265b5d9f34e8e1ac9a1d7cdf7f2ca0e6204 100644 (file)
@@ -1,7 +1,7 @@
 /* $Header$ */
 
 #include       <stdio.h>
-#include       <strings.h>
+#include       <string.h>
 #include       <X11/StringDefs.h>
 #include       <X11/IntrinsicP.h>
 #include       <X11/Shell.h>
@@ -310,7 +310,7 @@ EntryForm   *spec;
                if (current->type == FT_KEYWORD) {
                    char *p;
 
-                   p = index(current->prompt, '|');
+                   p = strchr(current->prompt, '|');
                    if (p) {
                        *p++ = 0;
                        current->keyword_name = p;
@@ -755,7 +755,7 @@ Cardinal *n;
     XmTextRec *tr = (XmTextRec *)w;
     int i;
 
-    if (tr->core.self != w || tr->core.widget_class != xmTextWidgetClass)
+    if (!tr || tr->core.self != w || tr->core.widget_class != xmTextWidgetClass)
       return;
     newvalue = XmTextGetString(w);
     f = WidgetToForm(w);
This page took 0.028611 seconds and 4 git commands to generate.