dtcm: Resolve CID 87562
[oweals/cde.git] / cde / programs / dtcm / dtcm / graphics.c
index cc692ef0a9fe3447965f44996ebf27d3291193ac..409dcb69f7e2c272f95acaafd25fd1fa21acc6a1 100644 (file)
@@ -54,7 +54,9 @@ static  char sccsid[] = "@(#)graphics.c 1.23 94/11/29 Copyr 1994 Sun Microsystem
 #include <EUSCompat.h>
 #include <stdio.h>
 #include <sys/stat.h>
+#if !defined(CSRG_BASED)
 #include <sys/sysmacros.h>
+#endif
 #include <sys/param.h> /* MAXPATHLEN defined here */
 #ifdef SVR4
 #include <sys/utsname.h> /* SYS_NMLN */
@@ -627,7 +629,7 @@ gr_create_stipple(new_XContext *xc, unsigned char *data, int datawidth, int data
         if ((*stipple = XCreateBitmapFromData(xc->display,
                 xc->xid,
         /*      RootWindow(xc->display, DefaultScreen(xc->display)),  */
-                (char *)data, datawidth, dataheight)) == NULL) {
+                (char *)data, datawidth, dataheight)) == 0) {
                         ok = False;
                 }
         else {