7db51e5598
Submitted by Peter Stromberg <home@wilfried.net>. wmbutton is a 64x64 pixel application that displays nine buttons. Each of these buttons can be configured via a configuration file to run just about any application you'd like to.
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
$OpenBSD: patch-wmbutton_c,v 1.1.1.1 2001/01/16 21:29:05 naddy Exp $
|
|
--- wmbutton.c.orig Mon Mar 8 17:59:20 1999
|
|
+++ wmbutton.c Fri Jan 12 11:42:57 2001
|
|
@@ -24,11 +24,11 @@
|
|
* development of wmbutton. I'm listing them here partially as thanks for
|
|
* helping out, catching bugs in the code, etc.
|
|
***********************************************************************/
|
|
-#include <Xlib.h>
|
|
-#include <Xutil.h>
|
|
-#include <xpm.h>
|
|
-#include <extensions/shape.h>
|
|
-#include <keysym.h>
|
|
+#include <X11/Xlib.h>
|
|
+#include <X11/Xutil.h>
|
|
+#include <X11/xpm.h>
|
|
+#include <X11/extensions/shape.h>
|
|
+#include <X11/keysym.h>
|
|
#include <stdio.h>
|
|
#include <math.h>
|
|
#include <stdlib.h>
|
|
@@ -115,8 +115,8 @@ int main( int argc, char ** argv ) {
|
|
char Geometry_str[64] = "64x64+0+0";
|
|
char Display_str[64] = "";
|
|
|
|
- strcpy(configfile, getenv("HOME")); // Added by Casey Harkin, 3/6/99
|
|
- strcat(configfile, CONFFILENAME); // Fixed Bug - didn't look in home directory
|
|
+ strlcpy(configfile, getenv("HOME"), sizeof(configfile)); // Added by Casey Harkin, 3/6/99
|
|
+ strlcat(configfile, CONFFILENAME, sizeof(configfile)); // Fixed Bug - didn't look in home directory
|
|
// but startup directory
|
|
|
|
/* Parse Command Line Arguments */
|