]> git.saurik.com Git - wxWidgets.git/commitdiff
re-merged wx fix
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Aug 2004 10:59:20 +0000 (10:59 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 29 Aug 2004 10:59:20 +0000 (10:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/png/pngerror.c

index d2a2dc8e812fab5856a5a88af8881a7649c277d8..d0da28333e920026f6ed97aac0a6b2f5976f8848 100644 (file)
@@ -147,8 +147,8 @@ png_format_buffer(png_structp png_ptr, png_charp buffer, png_const_charp
  
       buffer[iout++] = ':';
       buffer[iout++] = ' ';
-      png_strncpy(buffer+iout, error_message, 63);
-      buffer[iout+63] = 0;
+      png_strncpy(buffer+iout, error_message, len);
+      buffer[iout+len] = 0;
    }
 }