about summary refs log tree commit diff
path: root/other/pamx
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-08-28 18:06:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-08-28 18:06:58 +0000
commit74e9f65431bf11763a11d1fca9f7f94cade9d99f (patch)
treea602dfe0affe36a883d4bbf2d1a4212b4693c4c7 /other/pamx
parent191fd7f1f7d80e6d9a99c1995777de56c3070e59 (diff)
downloadnetpbm-mirror-74e9f65431bf11763a11d1fca9f7f94cade9d99f.tar.gz
netpbm-mirror-74e9f65431bf11763a11d1fca9f7f94cade9d99f.tar.xz
netpbm-mirror-74e9f65431bf11763a11d1fca9f7f94cade9d99f.zip
Release 10.47.19
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@1279 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pamx')
-rw-r--r--other/pamx/image.h1
-rw-r--r--other/pamx/send.c5
2 files changed, 3 insertions, 3 deletions
diff --git a/other/pamx/image.h b/other/pamx/image.h
index 32a48c5a..5b352a28 100644
--- a/other/pamx/image.h
+++ b/other/pamx/image.h
@@ -1,6 +1,5 @@
 #ifndef IMAGE_H_INCLUDED
 #define IMAGE_H_INCLUDED
-#include <strings.h>
 
 #include "pm_c_util.h"
 
diff --git a/other/pamx/send.c b/other/pamx/send.c
index 4b1268a5..5413308b 100644
--- a/other/pamx/send.c
+++ b/other/pamx/send.c
@@ -9,6 +9,7 @@
   See COPYRIGHT file for copyright information.
 */
 
+#include <string.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 
@@ -131,7 +132,7 @@ itrueToRGB(Image *      const imageP,
 
     colors = 1 << ddepth;
   
-    bzero(pixel_counts, 32768 * sizeof(unsigned long));
+    memset(pixel_counts, 0, 32768 * sizeof(unsigned long));
   
     pixel= imageP->data;
     for (y= 0; y < imageP->height; y++) {
@@ -693,7 +694,7 @@ makeXImage(XImageInfo * const ximageinfoP,
                     pm_error("Unable to allocate space for %u x %x x %u "
                              "image", imageP->width, imageP->height, dpixlen);
                 ximageinfoP->ximageP->data = (char*)data;
-                bzero(data, size);
+                memset(data, 0, size);
                 ximageinfoP->ximageP->bitmap_bit_order = MSBFirst;
                 ximageinfoP->ximageP->byte_order = MSBFirst;
                 for (a= 0; a < dbits; ++a) {