diff -ru icebreaker-1.9.5.orig/dialog.c icebreaker-1.9.5/dialog.c --- icebreaker-1.9.5.orig/dialog.c 2002-05-26 16:13:00.000000000 -0400 +++ icebreaker-1.9.5/dialog.c 2010-10-11 13:23:24.829480644 -0400 @@ -384,12 +384,12 @@ if (strlen(commandline.theme)>0) { - snprintf(originaltheme,MAXTHEMENAMELENGTH+1,"%s",commandline.theme); + snprintf(originaltheme,sizeof(originaltheme),"%s",commandline.theme); originalthemecl=true; } else { - snprintf(originaltheme,MAXTHEMENAMELENGTH+1,"%s",options.theme); + snprintf(originaltheme,sizeof(originaltheme),"%s",options.theme); originalthemecl=false; } @@ -662,7 +662,7 @@ { // "random", at the end of the list strncpy(val,"random",MAXMENUVALUELENGTH); - snprintf(options.theme,MAXMENUVALUELENGTH,"random"); + strcpy(options.theme,"random"); settheme("linux"); // just for pretty @@ -676,7 +676,7 @@ else { strncpy(val,themelist[(t+1)%themecount],MAXMENUVALUELENGTH); - snprintf(options.theme,MAXMENUVALUELENGTH,themelist[(t+1)%themecount]); + snprintf(options.theme,sizeof(options.theme),"%s",themelist[(t+1)%themecount]); settheme(options.theme); @@ -729,10 +729,10 @@ for (i=0;i