$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 -#include -#include -#include -#include +#include +#include +#include +#include +#include #include #include #include @@ -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 */