From 5ed03df783f8cc275a82e2ebc8a882c015d5d256 Mon Sep 17 00:00:00 2001 From: Morgan Aldridge Date: Sun, 27 Dec 2020 11:30:39 -0500 Subject: [PATCH] Convert strcat()s to snprintf()s. Issue #6 --- mlvwm/mlvwm.c | 37 ++++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/mlvwm/mlvwm.c b/mlvwm/mlvwm.c index 84b837e..8659709 100644 --- a/mlvwm/mlvwm.c +++ b/mlvwm/mlvwm.c @@ -545,10 +545,11 @@ void DoStartFunc( void ) int main( int argc, char *argv[] ) { char *display_name=NULL; + char *display_screen; char *display_string; char *config_file=NULL; char message[255]; - char num[10]; + char *cp; Window StartWin; XSetWindowAttributes attributes; int len, lp; @@ -614,19 +615,29 @@ int main( int argc, char *argv[] ) if(!single){ for(lp=0;lp