--- main.c	Fri Sep  8 00:31:42 2006
+++ /usr/local/src/dwm-1.5/main.c	Fri Sep  8 15:22:26 2006
@@ -155,7 +155,12 @@
 	XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
 
 	issel = XQueryPointer(dpy, root, &w, &w, &i, &i, &i, &i, &mask);
+
+#ifdef __OpenBSD__
+	strlcpy(stext, "dwm-"VERSION, sizeof(stext));
+#else
 	strcpy(stext, "dwm-"VERSION);
+#endif
 }
 
 /*
@@ -289,7 +294,11 @@
 				if(readin)
 					stext[strlen(stext) - 1] = 0;
 				else 
+#ifdef __OpenBSD__
+        				strlcpy(stext, "broken pipe", sizeof(stext));
+#else
 					strcpy(stext, "broken pipe");
+#endif
 				drawstatus();
 			}
 		}
