--- rxvt-unicode/src/background.C 2008/01/04 21:25:57 1.22 +++ rxvt-unicode/src/background.C 2008/01/07 12:41:31 1.24 @@ -259,7 +259,7 @@ unsigned int n; unsigned long new_flags = (flags & (~geometryFlags)); char *p; -# define MAXLEN_GEOM 256 /* could be longer then regular geometry string */ +# define MAXLEN_GEOM 256 /* could be longer than regular geometry string */ if (geom == NULL) return false; @@ -276,7 +276,7 @@ char *ops; new_flags |= geometrySet; - strncpy (str, geom, n); + memcpy (str, geom, n); str[n] = '\0'; if (str[0] == ':') ops = &str[0]; @@ -514,7 +514,7 @@ if (background == NULL) { /* if tiling - pixmap has to be sized exactly as the image, - but there is no need to make it bigger then the window! */ + but there is no need to make it bigger than the window! */ if (h_scale == 0) new_pmap_width = min (result->width, target_width); if (v_scale == 0) @@ -670,7 +670,7 @@ { size_t len = f - file; f = (char *)malloc (len + 1); - strncpy (f, file, len); + memcpy (f, file, len); f[len] = '\0'; original_asim = get_asimage (target->asimman, f, 0xFFFFFFFF, 100); free (f);