Index: trunk/src/samhain.c
===================================================================
--- trunk/src/samhain.c	(revision 539)
+++ trunk/src/samhain.c	(revision 541)
@@ -838,5 +838,5 @@
     (void) sh_unix_rm_pid_file ();
   if (skey != NULL)
-    memset (skey, (int) '\0', sizeof(sh_key_t));
+    memset (skey, 0, sizeof(sh_key_t));
   
   /* --- Exit. ---
Index: trunk/src/samhain_setpwd.c
===================================================================
--- trunk/src/samhain_setpwd.c	(revision 539)
+++ trunk/src/samhain_setpwd.c	(revision 541)
@@ -246,6 +246,6 @@
   char * oldpwd = (char *) malloc(5 * 8 + 2); 
 
-  memset (newpwd, '\0', 5 * 8 + 2); 
-  memset (oldpwd, '\0', 5 * 8 + 2); 
+  memset (newpwd, 0, 5 * 8 + 2); 
+  memset (oldpwd, 0, 5 * 8 + 2); 
 
 
Index: trunk/src/sh_audit.c
===================================================================
--- trunk/src/sh_audit.c	(revision 539)
+++ trunk/src/sh_audit.c	(revision 541)
@@ -148,5 +148,5 @@
     }
 
-  memset(&state, '\0', sizeof(state));
+  memset(&state, 0, sizeof(state));
 
   while (ausearch_next_event(au) == 1) 
Index: trunk/src/sh_database.c
===================================================================
--- trunk/src/sh_database.c	(revision 539)
+++ trunk/src/sh_database.c	(revision 541)
@@ -284,5 +284,5 @@
 static void init_db_entry (dbins * ptr)
 {
-  memset (ptr, (int) '\0', sizeof(dbins));
+  memset (ptr, 0, sizeof(dbins));
   ptr->next = NULL;
   return;
Index: trunk/src/sh_dbIO.c
===================================================================
--- trunk/src/sh_dbIO.c	(revision 539)
+++ trunk/src/sh_dbIO.c	(revision 541)
@@ -460,5 +460,5 @@
 	      if (1 == 0)
 		hexdump((unsigned char *)&old_struct, sizeof(old_struct));
-	      memset(&try_struct, '\0', sizeof(try_struct));
+	      memset(&try_struct, 0, sizeof(try_struct));
 	      if (!memcmp(&old_struct, &try_struct, sizeof(try_struct)))
 		return 0; /* NULL read */
@@ -1437,5 +1437,5 @@
 	 
   if (!buf) {
-    memset(&p, '\0', sizeof(sh_filestore_t));
+    memset(&p, 0, sizeof(sh_filestore_t));
   }
 
Index: trunk/src/sh_entropy.c
===================================================================
--- trunk/src/sh_entropy.c	(revision 539)
+++ trunk/src/sh_entropy.c	(revision 541)
@@ -334,5 +334,5 @@
     nbytes = KEY_BYT;
 
-  memset(nbuf, '\0', nbytes);
+  memset(nbuf, 0, nbytes);
 
 #ifdef NAME_OF_DEV_URANDOM
@@ -370,5 +370,5 @@
       /* -- Add previous entropy into the new pool. --
        */
-      memset(addbuf, '\0', sizeof(addbuf));
+      memset(addbuf, 0, sizeof(addbuf));
       for (i = 0; i < m_count; ++i)
 	addbuf[i]         = nbuf[i];
@@ -378,5 +378,5 @@
 					      TIGER_DATA, 2 * KEY_BYT,
 					      kbuf, KEY_BYT/sizeof(UINT32));
-      memset(addbuf, '\0', sizeof(addbuf));
+      memset(addbuf, 0, sizeof(addbuf));
       
       /* -- Give out nbytes bytes from the new pool. --
@@ -390,6 +390,6 @@
 	}
       SH_MUTEX_UNLOCK_UNSAFE(mutex_skey);
-      memset (keybuf, '\0', KEY_BYT);
-      memset (kbuf,   '\0', sizeof(kbuf));
+      memset (keybuf, 0, KEY_BYT);
+      memset (kbuf,   0, sizeof(kbuf));
       
       SL_RETURN(0, _("sh_entropy"));
@@ -416,5 +416,5 @@
 #endif
 #ifndef FD_ZERO
-#define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
+#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
 #endif
 
@@ -953,5 +953,5 @@
 					    TIGER_DATA, sizeof(tseed),
 					    kbuf, KEY_BYT/sizeof(UINT32));
-    memset(addbuf, '\0', sizeof(addbuf));
+    memset(addbuf, 0, sizeof(addbuf));
     for (i = 0; i < KEY_BYT; ++i)
       {
@@ -974,5 +974,5 @@
       /* add previous entropy into the new pool
        */
-      memset(addbuf, '\0', sizeof(addbuf));
+      memset(addbuf, 0, sizeof(addbuf));
       for (i = 0; i < KEY_BYT; ++i)
 	{
@@ -983,5 +983,5 @@
 					      TIGER_DATA, sizeof(addbuf),
 					      kbuf, KEY_BYT/sizeof(UINT32));
-      memset(addbuf, '\0', sizeof(addbuf));
+      memset(addbuf, 0, sizeof(addbuf));
       
       /* store in system pool
@@ -992,6 +992,6 @@
       skey->poolc = KEY_BYT;
       SH_MUTEX_UNLOCK_UNSAFE(mutex_skey);
-      memset (buffer, '\0', BUF_ENT+2);
-      memset (keybuf, '\0', KEY_BYT);
+      memset (buffer, 0, BUF_ENT+2);
+      memset (keybuf, 0, KEY_BYT);
       SH_FREE(buffer);
     } 
@@ -1030,5 +1030,5 @@
   for (count = 0; count < 20; ++count)
     {
-      memset(skey->poolv, '\0', KEY_BYT);
+      memset(skey->poolv, 0, KEY_BYT);
       skey->poolc = 0;
 
@@ -1036,5 +1036,5 @@
       CuAssertTrue(tc, 0 == status);
       
-      memset(skey->poolv, '\0', KEY_BYT);
+      memset(skey->poolv, 0, KEY_BYT);
       skey->poolc = 0;
 
Index: trunk/src/sh_err_console.c
===================================================================
--- trunk/src/sh_err_console.c	(revision 539)
+++ trunk/src/sh_err_console.c	(revision 541)
@@ -141,5 +141,5 @@
   } while (rc < 0 && errno == EINTR);
 
-  memset(&recv_msg, '\0', sizeof(recv_msg));
+  memset(&recv_msg, 0, sizeof(recv_msg));
   return;
 }
@@ -190,5 +190,5 @@
   if (count > 1)
     {
-      memset(recv_msg, '\0', MY_MAX_MSG+1);
+      memset(recv_msg, 0, MY_MAX_MSG+1);
       SH_FREE(recv_msg);
       SL_RETURN(-1, _("push_message_queue"));
@@ -214,5 +214,5 @@
 	TPT(( 0, FIL__, __LINE__, _("msg=<msgsnd: %s> errno=<%d>\n"), 
 	      sh_error_message(errno, errbuf, sizeof(errbuf)), errno));
-	memset(recv_msg, '\0', MY_MAX_MSG+1);
+	memset(recv_msg, 0, MY_MAX_MSG+1);
 	SH_FREE(recv_msg);
 	SL_RETURN(-1, _("push_message_queue"));
@@ -220,5 +220,5 @@
     }
 
-  memset(recv_msg, '\0', MY_MAX_MSG+1);
+  memset(recv_msg, 0, MY_MAX_MSG+1);
   SH_FREE(recv_msg);
 
Index: trunk/src/sh_err_log.c
===================================================================
--- trunk/src/sh_err_log.c	(revision 539)
+++ trunk/src/sh_err_log.c	(revision 541)
@@ -743,7 +743,7 @@
       current->service_failure = 0;
       current->log_start       = S_TRUE;
-      memset(current->sigkey_old, (int)'\0', KEY_LEN+1);
-      memset(current->sigkey_new, (int)'\0', KEY_LEN+1);
-      memset(current->crypto,     (int)'\0', KEY_LEN+1);
+      memset(current->sigkey_old, 0, KEY_LEN+1);
+      memset(current->sigkey_new, 0, KEY_LEN+1);
+      memset(current->crypto,     0, KEY_LEN+1);
       current->next            = logfile_list;
       logfile_list             = current;
@@ -944,5 +944,5 @@
 
 
-      memset (crypto, (int) '\0', KEY_LEN);
+      memset (crypto, 0, KEY_LEN);
       sh.flag.log_start    = S_FALSE;  
       current->log_start   = S_FALSE;
@@ -1046,6 +1046,6 @@
   /* --- Clean up and free record. ---
    */
-  memset (log_msg.msg,       (int)'\0', (size_t)(status + 2*KEY_LEN + 32));
-  memset (log_msg.signature, (int)'\0', KEY_LEN);
+  memset (log_msg.msg,       0, (size_t)(status + 2*KEY_LEN + 32));
+  memset (log_msg.signature, 0, KEY_LEN);
   (void) sh_unix_munlock (log_msg.msg,  
 			  (size_t)(status + 2*KEY_LEN + 32));
Index: trunk/src/sh_error.c
===================================================================
--- trunk/src/sh_error.c	(revision 539)
+++ trunk/src/sh_error.c	(revision 541)
@@ -1442,5 +1442,5 @@
   sh_replace_free(hexmsg);
 
-  memset ( lmsg, (int) '\0', sizeof(struct _log_t) );
+  memset ( lmsg, 0, sizeof(struct _log_t) );
   MUNLOCK( (char *) lmsg,       sizeof(struct _log_t) );
   SH_FREE( lmsg );
Index: trunk/src/sh_filter.c
===================================================================
--- trunk/src/sh_filter.c	(revision 539)
+++ trunk/src/sh_filter.c	(revision 541)
@@ -293,5 +293,5 @@
   sh_filter_type * filter = SH_ALLOC(sizeof(sh_filter_type));
 
-  memset(filter, '\0', sizeof(sh_filter_type));
+  memset(filter, 0, sizeof(sh_filter_type));
   filter->for_c  = 0; 
   filter->fand_c = 0; 
Index: trunk/src/sh_gpg.c
===================================================================
--- trunk/src/sh_gpg.c	(revision 539)
+++ trunk/src/sh_gpg.c	(revision 541)
@@ -457,5 +457,5 @@
        * gpg.
        */
-      memset (skey, '\0', sizeof(sh_key_t));
+      memset (skey, 0, sizeof(sh_key_t));
       aud_setuid(FIL__, __LINE__, geteuid());
       
Index: trunk/src/sh_ipvx.c
===================================================================
--- trunk/src/sh_ipvx.c	(revision 539)
+++ trunk/src/sh_ipvx.c	(revision 541)
@@ -208,6 +208,4 @@
 void sh_ipvx_save(struct sh_sockaddr * ss, int sa_family, struct sockaddr * sa)
 {
-  /* memset(ss, '\0', sizeof(struct sh_sockaddr)); */
-
   switch (sa_family)
     {
@@ -278,5 +276,5 @@
   struct addrinfo *res;
 
-  memset(&hints, '\0', sizeof(hints));
+  memset(&hints, 0, sizeof(hints));
   hints.ai_family = PF_UNSPEC;
   hints.ai_flags  = AI_NUMERICHOST;
@@ -286,5 +284,5 @@
     return 0;
 
-  memset(ss, '\0', sizeof(struct sh_sockaddr));
+  memset(ss, 0, sizeof(struct sh_sockaddr));
   switch(res->ai_family)
     {
@@ -514,5 +512,5 @@
   sl_snprintf(sport, sizeof(sport), "%d", port);
 
-  memset(&hints, '\0', sizeof(hints));
+  memset(&hints, 0, sizeof(hints));
   hints.ai_socktype = SOCK_STREAM;
   hints.ai_flags = AI_ADDRCONFIG;
Index: trunk/src/sh_log_check.c
===================================================================
--- trunk/src/sh_log_check.c	(revision 539)
+++ trunk/src/sh_log_check.c	(revision 541)
@@ -601,5 +601,5 @@
       SH_MUTEX_UNLOCK(mutex_thread_nolog);
 
-      memset (&(logfile->offset), '\0', sizeof(fpos_t));
+      memset (&(logfile->offset), 0, sizeof(fpos_t));
       logfile->flags |= SH_LOGFILE_REWIND;
       return 0;
@@ -623,5 +623,5 @@
 	  /* done with rotated file, start with current file
 	   */
-	  memset (&(logfile->offset), '\0', sizeof(fpos_t));
+	  memset (&(logfile->offset), 0, sizeof(fpos_t));
 	  logfile->flags    |= SH_LOGFILE_REWIND;
 	  logfile->flags    &= ~SH_LOGFILE_MOVED;
@@ -646,5 +646,5 @@
 	  else
 	    {
-	      memset (&(logfile->offset), '\0', sizeof(fpos_t));
+	      memset (&(logfile->offset), 0, sizeof(fpos_t));
 	      logfile->flags    |= SH_LOGFILE_REWIND;
 	      logfile->inode     = buf.st_ino;
@@ -965,5 +965,5 @@
       if (status != 1)
 	{
-	  memset(s, '\0', size);
+	  memset(s, 0, size);
 	  if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0)
 	    {
Index: trunk/src/sh_log_evalrule.c
===================================================================
--- trunk/src/sh_log_evalrule.c	(revision 539)
+++ trunk/src/sh_log_evalrule.c	(revision 541)
@@ -186,5 +186,5 @@
 
   ng = SH_ALLOC(sizeof(struct sh_geval));
-  memset(ng, '\0', sizeof(struct sh_geval));
+  memset(ng, 0, sizeof(struct sh_geval));
 
   ng->label       = sh_string_new_from_lchar(splits[0], lengths[0]);
@@ -294,5 +294,5 @@
 
   nh = SH_ALLOC(sizeof(struct sh_heval));
-  memset(nh, '\0', sizeof(struct sh_heval));
+  memset(nh, 0, sizeof(struct sh_heval));
 
   nh->hostname = host;
@@ -362,5 +362,5 @@
 
   nq = SH_ALLOC(sizeof(struct sh_qeval));
-  memset(nq, '\0', sizeof(struct sh_qeval));
+  memset(nq, 0, sizeof(struct sh_qeval));
 
   nq->label = sh_string_new_from_lchar(splits[0], lengths[0]);
@@ -620,5 +620,5 @@
 
   nr = SH_ALLOC(sizeof(struct sh_geval));
-  memset(nr, '\0', sizeof(struct sh_geval));
+  memset(nr, 0, sizeof(struct sh_geval));
 
   nr->label       = NULL;
@@ -1142,5 +1142,5 @@
 
       counter = SH_ALLOC(sizeof(struct sh_ceval));
-      memset(counter, '\0', sizeof(struct sh_ceval));
+      memset(counter, 0, sizeof(struct sh_ceval));
 
       counter->hostname    = sh_string_new_from_lchar(sh_string_str(host), 
Index: trunk/src/sh_log_parse_apache.c
===================================================================
--- trunk/src/sh_log_parse_apache.c	(revision 539)
+++ trunk/src/sh_log_parse_apache.c	(revision 541)
@@ -354,5 +354,5 @@
 	  char * ptr = NULL;
 
-	  memset(&btime, '\0', sizeof(struct tm));
+	  memset(&btime, 0, sizeof(struct tm));
 	  btime.tm_isdst = -1;
 	  
Index: trunk/src/sh_log_parse_samba.c
===================================================================
--- trunk/src/sh_log_parse_samba.c	(revision 539)
+++ trunk/src/sh_log_parse_samba.c	(revision 541)
@@ -75,5 +75,5 @@
 	  char * ptr;
 
-	  memset(&btime, '\0', sizeof(struct tm));
+	  memset(&btime, 0, sizeof(struct tm));
 	  btime.tm_isdst = -1;
 
Index: trunk/src/sh_log_parse_syslog.c
===================================================================
--- trunk/src/sh_log_parse_syslog.c	(revision 539)
+++ trunk/src/sh_log_parse_syslog.c	(revision 541)
@@ -94,5 +94,5 @@
       size_t lengths[3];
 
-      memset(&btime, '\0', sizeof(struct tm));
+      memset(&btime, 0, sizeof(struct tm));
       btime.tm_isdst = -1;
 
Index: trunk/src/sh_login_track.c
===================================================================
--- trunk/src/sh_login_track.c	(revision 539)
+++ trunk/src/sh_login_track.c	(revision 541)
@@ -232,5 +232,5 @@
 
   urecord = SH_ALLOC(sizeof(struct sh_track));
-  memset(urecord, '\0', sizeof(struct sh_track));
+  memset(urecord, 0, sizeof(struct sh_track));
 
   uhead = &(urecord->head);
@@ -445,5 +445,5 @@
 	    {
 	      u = SH_ALLOC(sizeof(struct sh_track_dates));
-	      memset(u, '\0', sizeof(struct sh_track_dates));
+	      memset(u, 0, sizeof(struct sh_track_dates));
 	      sl_strlcpy(u->user, user, SH_LTRACK_USIZE);
 	      flag = 1;
@@ -913,5 +913,5 @@
     {
       entry = SH_ALLOC(sizeof(struct sh_track_entry));
-      memset(entry, '\0', sizeof(struct sh_track_entry));
+      memset(entry, 0, sizeof(struct sh_track_entry));
       (entry->data).last_login    = time;
       (entry->data).array[index]  = 1;
Index: trunk/src/sh_port2proc.c
===================================================================
--- trunk/src/sh_port2proc.c	(revision 539)
+++ trunk/src/sh_port2proc.c	(revision 541)
@@ -635,5 +635,5 @@
 	    memcpy(xbuf, buf, len0);
 	  else
-	    memset(xbuf, '\0', len);
+	    memset(xbuf, 0, len);
 	  SH_FREE(buf);
 	}
@@ -823,5 +823,5 @@
 
                 sock = SH_ALLOC(sizeof *sock);
-		memset(sock, '\0', sizeof (*sock));
+		memset(sock, 0, sizeof (*sock));
 
 #ifndef in6p_lport
Index: trunk/src/sh_portcheck.c
===================================================================
--- trunk/src/sh_portcheck.c	(revision 539)
+++ trunk/src/sh_portcheck.c	(revision 541)
@@ -1410,5 +1410,5 @@
   SH_MUTEX_UNLOCK(mutex_resolv);
 #else
-  memset(&hints, '\0', sizeof(hints));
+  memset(&hints, 0, sizeof(hints));
   hints.ai_family = PF_UNSPEC;
   hints.ai_flags  = AI_ADDRCONFIG;
Index: trunk/src/sh_registry.c
===================================================================
--- trunk/src/sh_registry.c	(revision 539)
+++ trunk/src/sh_registry.c	(revision 541)
@@ -350,5 +350,5 @@
   struct store2db save;
 
-  memset(&save, '\0', sizeof(struct store2db));
+  memset(&save, 0, sizeof(struct store2db));
   sh_hash_db2pop (path, &save);
     
@@ -682,5 +682,5 @@
       struct store2db save;
 
-      memset(&save, '\0', sizeof(struct store2db));
+      memset(&save, 0, sizeof(struct store2db));
 
       if (tPath)
@@ -774,5 +774,5 @@
       struct store2db save;
 
-      memset(&save, '\0', sizeof(struct store2db));
+      memset(&save, 0, sizeof(struct store2db));
       
       save.val0 = totalSize;
Index: trunk/src/sh_tiger0.c
===================================================================
--- trunk/src/sh_tiger0.c	(revision 539)
+++ trunk/src/sh_tiger0.c	(revision 541)
@@ -379,5 +379,5 @@
 	ncount = 0;
 #endif
-        sl_memset(bbuf, 0, 56 ); 
+        memset(bbuf, 0, 56 ); 
       }
 
@@ -402,6 +402,6 @@
 #endif
 
-    sl_memset (bbuf,   '\0', sizeof(bbuf));
-    sl_memset (buffer, '\0', sizeof(buffer));
+    memset (bbuf,   0, sizeof(bbuf));
+    memset (buffer, 0, sizeof(buffer));
 
     if (what == TIGER_FILE)
Index: trunk/src/sh_tools.c
===================================================================
--- trunk/src/sh_tools.c	(revision 539)
+++ trunk/src/sh_tools.c	(revision 541)
@@ -70,5 +70,5 @@
 #endif
 #ifndef FD_ZERO
-#define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
+#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
 #endif
 
@@ -135,5 +135,5 @@
   int             res;
 
-  memset (&hints, '\0', sizeof (hints));
+  memset (&hints, 0, sizeof (hints));
   hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
   hints.ai_socktype = SOCK_STREAM;
@@ -180,5 +180,5 @@
   int sd;
 
-  memset(&sin, '\0', sizeof(sin));
+  memset(&sin, 0, sizeof(sin));
   sin.sin_family = AF_INET;
   if (inet_aton(str, &(sin.sin_addr)))
@@ -915,5 +915,5 @@
 	fputs(_("-03- not cached\n"), stderr);
 
-      memset (&hints, '\0', sizeof (hints));
+      memset (&hints, 0, sizeof (hints));
       hints.ai_flags = AI_ADDRCONFIG;
 #if defined(AI_CANONNAME)
@@ -1668,8 +1668,8 @@
   if ((i_blk*16) > payload_size && !oflow) 
     {
-      memset(&full_ret[16+payload_size], '\0', (i_blk*16) - payload_size);
+      memset(&full_ret[16+payload_size], 0, (i_blk*16) - payload_size);
       payload_size = i_blk * 16;
     }
-  memset(&full_ret[16+payload_size], '\0', i_epad*16);
+  memset(&full_ret[16+payload_size], 0, i_epad*16);
 
   /* rewrite header
Index: trunk/src/sh_unix.c
===================================================================
--- trunk/src/sh_unix.c	(revision 539)
+++ trunk/src/sh_unix.c	(revision 541)
@@ -83,5 +83,5 @@
 #endif
 #ifndef FD_ZERO
-#define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
+#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
 #endif
 
@@ -514,5 +514,5 @@
       ++immediate_exit_normal;
       if ((skey != NULL) && (immediate_exit_normal == 2))
-	memset (skey, '\0', sizeof(sh_key_t));
+	memset (skey, 0, sizeof(sh_key_t));
       if (immediate_exit_normal == 2)
 	{
@@ -579,5 +579,5 @@
   ++immediate_exit_fast;
   if (skey != NULL && immediate_exit_fast < 2)
-    memset (skey, '\0', sizeof(sh_key_t));
+    memset (skey, 0, sizeof(sh_key_t));
   if (immediate_exit_fast < 2)
     safe_logger (mysignal, 0, NULL);
@@ -591,5 +591,5 @@
       ++immediate_exit_fast;
       if (skey != NULL)
-	memset (skey, '\0', sizeof(sh_key_t));
+	memset (skey, 0, sizeof(sh_key_t));
       close_ipc ();
       safe_logger (mysignal, 0, NULL);
@@ -631,5 +631,5 @@
 
   if (skey != NULL)
-    memset (skey, '\0', sizeof(sh_key_t));
+    memset (skey, 0, sizeof(sh_key_t));
   close_ipc ();
 
Index: trunk/src/sh_utils.c
===================================================================
--- trunk/src/sh_utils.c	(revision 539)
+++ trunk/src/sh_utils.c	(revision 541)
@@ -1088,5 +1088,5 @@
   SH_MUTEX_UNLOCK_UNSAFE(mutex_skey);
 
-  memset(taus_svec, '\0', TAUS_SAMPLE * sizeof(UINT32));
+  memset(taus_svec, 0, TAUS_SAMPLE * sizeof(UINT32));
 
   return retval;
Index: trunk/src/sh_utmp.c
===================================================================
--- trunk/src/sh_utmp.c	(revision 539)
+++ trunk/src/sh_utmp.c	(revision 541)
@@ -875,5 +875,5 @@
   if (memcmp (&save_utmp, ut, sizeof(struct SH_UTMP_S)) == 0)
     {
-      memset(&save_utmp, (int) '\0', sizeof(struct SH_UTMP_S));
+      memset(&save_utmp, 0, sizeof(struct SH_UTMP_S));
       SL_RET0(_("sh_utmp_addlogin"));
     }
Index: trunk/src/sh_xfer_client.c
===================================================================
--- trunk/src/sh_xfer_client.c	(revision 539)
+++ trunk/src/sh_xfer_client.c	(revision 541)
@@ -97,5 +97,5 @@
 #endif
 #ifndef FD_ZERO
-#define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
+#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
 #endif
 
@@ -1051,5 +1051,5 @@
       xfer_timeout_val *= 2;
       sh_error_handle((-1), FIL__, __LINE__, 0, MSG_TCP_NOAUTH);
-      memset(answer, '\0', 512);
+      memset(answer, 0, 512);
       MUNLOCK(answer, 512);
       SH_FREE(answer);
Index: trunk/src/sh_xfer_server.c
===================================================================
--- trunk/src/sh_xfer_server.c	(revision 539)
+++ trunk/src/sh_xfer_server.c	(revision 541)
@@ -105,5 +105,5 @@
 #endif
 #ifndef FD_ZERO
-#define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
+#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
 #endif
 
@@ -1789,5 +1789,5 @@
 	      clt_class = (-1);
 	    }
-	  memset(buffer, '\0', sl_strlen(buffer));
+	  memset(buffer, 0, sl_strlen(buffer));
 	  SH_FREE(buffer);
 	  
@@ -1847,5 +1847,5 @@
 #endif
 	  
-	  memset(buffer, '\0', sl_strlen(buffer));
+	  memset(buffer, 0, sl_strlen(buffer));
 	  SH_FREE(buffer);
 	  
@@ -3104,5 +3104,5 @@
   if (use_server_interface == 0) /* INADDR_ANY, listen on all interfaces */
     {
-      memset (&hints, '\0', sizeof (hints));
+      memset (&hints, 0, sizeof (hints));
       hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
       hints.ai_socktype = SOCK_STREAM;
Index: trunk/src/sh_xfer_syslog.c
===================================================================
--- trunk/src/sh_xfer_syslog.c	(revision 539)
+++ trunk/src/sh_xfer_syslog.c	(revision 541)
@@ -435,5 +435,5 @@
 
 #else
-  memset (&hints, '\0', sizeof (hints));
+  memset (&hints, 0, sizeof (hints));
   hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG;
   hints.ai_socktype = SOCK_DGRAM;
Index: trunk/src/t-test0.c
===================================================================
--- trunk/src/t-test0.c	(revision 539)
+++ trunk/src/t-test0.c	(revision 541)
@@ -166,5 +166,5 @@
 	if(size == 0) return;
 #if TEST > 3
-	memset(ptr, '\0', size);
+	memset(ptr, 0, size);
 #endif
 	for(i=0; i<size; i+=2047) {
