--- rxvt-unicode/src/xpm.C 2006/02/20 22:42:01 1.34 +++ rxvt-unicode/src/xpm.C 2006/08/18 23:03:31 1.35 @@ -58,7 +58,7 @@ unsigned int w = 0, h = 0; unsigned int n; char *p; - bgPixmap_t *bgpixmap = & (bgPixmap); + bgPixmap_t *bgpixmap = &bgPixmap; #define MAXLEN_GEOM sizeof("[10000x10000+10000+10000]") @@ -80,7 +80,7 @@ p = strchr (geom, '\0'); n = (p - geom); - if (n <= MAXLEN_GEOM) + if (n < MAXLEN_GEOM) { strncpy (str, geom, n); str[n] = '\0';