- remove NO_REGRESS - regen patches - reformat DESCR from new MAINTAINER, Scott Vokes, with tweaks by me
25 lines
854 B
Plaintext
25 lines
854 B
Plaintext
$OpenBSD: patch-pictures_c,v 1.3 2007/07/18 09:58:22 jasper Exp $
|
|
--- pictures.c.orig Thu Jul 12 16:01:15 2007
|
|
+++ pictures.c Thu Jul 12 16:04:31 2007
|
|
@@ -223,7 +223,7 @@ parse_slideshow(const char *slideshowtext, double flas
|
|
int i;
|
|
|
|
if (strlen(slideshowtext) >= BUFSIZ) return 0;
|
|
- strcpy(buf, slideshowtext);
|
|
+ strlcpy(buf, slideshowtext, sizeof(buf));
|
|
s = buf;
|
|
|
|
gfs = Gif_NewStream();
|
|
@@ -243,9 +243,9 @@ parse_slideshow(const char *slideshowtext, double flas
|
|
|
|
if (n[0] == '&' || n[0] == '*') {
|
|
/* built-in image */
|
|
- strcpy(name, n + 1);
|
|
+ strlcpy(name, n + 1, sizeof(name));
|
|
if (mono)
|
|
- strcat(name, "mono");
|
|
+ strlcat(name, "mono", sizeof(name));
|
|
i = strlen(name);
|
|
add = get_built_in_image(name);
|
|
/* some images don't have monochromatic versions; fall back on color */
|