diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2004-05-16 04:18:34 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2004-05-16 04:18:34 +0000 |
commit | bc650b5c886e7218fe47e91b66a3544487fe2d49 (patch) | |
tree | 0341d96a15b7de09f01d367d5ba316fb729bfe90 /graphics | |
parent | 8f7592e14d76de18fe6d825f0b39117b68dd1d30 (diff) |
Notes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/png/Makefile | 2 | ||||
-rw-r--r-- | graphics/png/files/patch-ac | 18 |
2 files changed, 6 insertions, 14 deletions
diff --git a/graphics/png/Makefile b/graphics/png/Makefile index f3c9cdadc924..eacb963373da 100644 --- a/graphics/png/Makefile +++ b/graphics/png/Makefile @@ -7,7 +7,7 @@ PORTNAME= png PORTVERSION= 1.2.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= graphics MASTER_SITES= http://www.libpng.org/pub/png/src/ \ ftp://swrinde.nde.swri.edu/pub/png/src/ \ diff --git a/graphics/png/files/patch-ac b/graphics/png/files/patch-ac index c43f263aec03..335d4ff0744d 100644 --- a/graphics/png/files/patch-ac +++ b/graphics/png/files/patch-ac @@ -1,19 +1,11 @@ ---- pngerror.c.orig Thu Oct 3 15:32:27 2002 -+++ pngerror.c Mon May 3 01:18:27 2004 -@@ -135,10 +135,14 @@ - buffer[iout] = 0; - else +--- pngerror.c.bak Thu Oct 3 15:32:27 2002 ++++ pngerror.c Sun May 16 08:10:42 2004 +@@ -137,7 +137,7 @@ { -+ int len = strlen(error_message); -+ -+ if (len > 63) -+ len = 63; buffer[iout++] = ':'; buffer[iout++] = ' '; - png_memcpy(buffer+iout, error_message, 64); -- buffer[iout+63] = 0; -+ png_memcpy(buffer+iout, error_message, len); -+ buffer[iout+len] = 0; ++ strncpy(buffer+iout, error_message, 63); + buffer[iout+63] = 0; } } - |