X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=utils%2Fresources.c;h=d13fb820e3b2764f0c28475ee53cc5d65629a7e8;hb=6bb727f03bff0389fbb1349d7df4c9d8d7532959;hp=827482319cf500ea7a8451354f49d79347f6e567;hpb=5b7bc6e70fb439cf4c4bf771ae9f94077fe4fe08;p=xscreensaver diff --git a/utils/resources.c b/utils/resources.c index 82748231..d13fb820 100644 --- a/utils/resources.c +++ b/utils/resources.c @@ -1,4 +1,5 @@ -/* xscreensaver, Copyright (c) 1992, 1997 Jamie Zawinski +/* xscreensaver, Copyright (c) 1992, 1997, 1998 + * Jamie Zawinski * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that @@ -125,6 +126,8 @@ get_pixel_resource (char *res_name, char *res_class, for (s2 = s + strlen(s) - 1; s2 > s; s2--) if (*s2 == ' ' || *s2 == '\t') *s2 = 0; + else + break; if (! XParseColor (dpy, cmap, s, &color)) {