ftp://ftp.krokus.ru/pub/OpenBSD/distfiles/xscreensaver-4.21.tar.gz
[xscreensaver] / hacks / fontglide.c
index 02493c8543c0f12951b929ed1505d5fca1d9759a..ee1cb2525e3108d66dbd7e192803384f0514e515 100644 (file)
@@ -1,4 +1,4 @@
-/* xscreensaver, Copyright (c) 2003 Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 2003, 2005 Jamie Zawinski <jwz@jwz.org>
  *
  * Permission to use, copy, modify, distribute, and sell this software and its
  * documentation for any purpose is hereby granted without fee, provided that
@@ -1346,9 +1346,7 @@ static void
 launch_text_generator (state *s)
 {
   char *oprogram = get_string_resource ("program", "Program");
-  char *program;
-
-  program = (char *) malloc (strlen (oprogram) + 10);
+  char *program = (char *) malloc (strlen (oprogram) + 10);
   strcpy (program, "( ");
   strcat (program, oprogram);
   strcat (program, " ) 2>&1");
@@ -1536,7 +1534,7 @@ char *defaults [] = {
   ".foreground:                #DDDDDD",
   ".borderColor:       #555555",
   "*delay:             10000",
-  "*program:         " FORTUNE_PROGRAM,
+  "*program:           xscreensaver-text",
   "*mode:               random",
   ".font:               (default)",
   "*fontCharset:        iso8859-1",