about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-09-18 20:18:39 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-09-18 20:18:39 +0000
commitc1504a8ffa4694779448393e5781cb182610c486 (patch)
tree69bb7cccc11e6031cc4ecc281d0c72d564ec45cc /other
parent64085f3a76eb6db2c14e52ccb06301f6a5807b77 (diff)
downloadnetpbm-mirror-c1504a8ffa4694779448393e5781cb182610c486.tar.gz
netpbm-mirror-c1504a8ffa4694779448393e5781cb182610c486.tar.xz
netpbm-mirror-c1504a8ffa4694779448393e5781cb182610c486.zip
Release 10.35.77
git-svn-id: http://svn.code.sf.net/p/netpbm/code/super_stable@1287 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-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 9c9689ac..ea597b2e 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) {