diff options
Diffstat (limited to 'graphics/png/files/patch-ac')
-rw-r--r-- | graphics/png/files/patch-ac | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/png/files/patch-ac b/graphics/png/files/patch-ac new file mode 100644 index 000000000000..c43f263aec03 --- /dev/null +++ b/graphics/png/files/patch-ac @@ -0,0 +1,19 @@ +--- 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 + { ++ 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; + } + } + |