projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.37.tar.gz
[xscreensaver]
/
driver
/
xscreensaver.c
diff --git
a/driver/xscreensaver.c
b/driver/xscreensaver.c
index 76969f23d2454bc0e01628af46abbb8e5018ff67..dd27cae56f679727d5b42ab9679266c120692942 100644
(file)
--- a/
driver/xscreensaver.c
+++ b/
driver/xscreensaver.c
@@
-1,4
+1,4
@@
-/* xscreensaver, Copyright (c) 1991-201
6
Jamie Zawinski <jwz@jwz.org>
+/* xscreensaver, Copyright (c) 1991-201
7
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
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
@@
-530,7
+530,7
@@
set_version_string (saver_info *si, int *argc, char **argv)
*s = '_';
}
*s = '_';
}
- si->version = (char *) malloc (
5
);
+ si->version = (char *) malloc (
32
);
memcpy (si->version, screensaver_id + 17, 4);
si->version [4] = 0;
}
memcpy (si->version, screensaver_id + 17, 4);
si->version [4] = 0;
}
@@
-2324,7
+2324,6
@@
analyze_display (saver_info *si)
char buf [255];
int maj = 0, min = 0;
int dummy1, dummy2, dummy3;
char buf [255];
int maj = 0, min = 0;
int dummy1, dummy2, dummy3;
- int j;
/* Most of the extension version functions take 3 args,
writing results into args 2 and 3, but some take more.
/* Most of the extension version functions take 3 args,
writing results into args 2 and 3, but some take more.
@@
-2337,7
+2336,6
@@
analyze_display (saver_info *si)
if (!XQueryExtension (si->dpy, exts[i].name, &op, &event, &error))
continue;
sprintf (buf, "%s: ", blurb());
if (!XQueryExtension (si->dpy, exts[i].name, &op, &event, &error))
continue;
sprintf (buf, "%s: ", blurb());
- j = strlen (buf);
strcat (buf, exts[i].desc);
if (!version_fn_2)
strcat (buf, exts[i].desc);
if (!version_fn_2)