Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 89134 | Differences between
and this patch

Collapse All | Expand All

(-)xscreensaver-4.20.original/hacks/xjack.c (-1 / +11 lines)
Lines 39-45 Link Here
39
void
39
void
40
screenhack (Display *dpy, Window window)
40
screenhack (Display *dpy, Window window)
41
{
41
{
42
  static const char *source = "All work and no play makes Jack a dull boy.  ";
42
  static const char source[1024];
43
  static int initDone = 0;
43
  /* If you're here because you're thinking about making the above string be
44
  /* If you're here because you're thinking about making the above string be
44
     customizable, then you don't get the joke.  You loser. */
45
     customizable, then you don't get the joke.  You loser. */
45
  const char *s = source;
46
  const char *s = source;
Lines 62-67 Link Here
62
  char *fontname = get_string_resource ("font", "Font");
63
  char *fontname = get_string_resource ("font", "Font");
63
  XFontStruct *font = XLoadQueryFont (dpy, fontname);
64
  XFontStruct *font = XLoadQueryFont (dpy, fontname);
64
65
66
  if (initDone == 0) {
67
		memset(source, 0, 1024);
68
		if (getenv("USER") != NULL) {
69
			sprintf(source, "All work and no play makes %s a dull boy.  ", getenv("USER"));
70
		} else
71
			sprintf(source, "All work and no play makes Jack a dull boy.  ");
72
		initDone = 1;
73
  }
74
  
65
  if (!font)
75
  if (!font)
66
    font = XLoadQueryFont (dpy, "-*-*-medium-r-*-*-*-240-*-*-m-*-*-*");
76
    font = XLoadQueryFont (dpy, "-*-*-medium-r-*-*-*-240-*-*-m-*-*-*");
67
  if (!font)
77
  if (!font)

Return to bug 89134