]> diplodocus.org Git - nmh/blobdiff - uip/mhlsbr.c
ap: Fix write past end of addrs[] array.
[nmh] / uip / mhlsbr.c
index ac5dc89a874ecf96594f115b6304f9bd9de1dbdd..c56acff973cf8c236beb49a0b39e6eb3e02231f3 100644 (file)
@@ -1486,7 +1486,7 @@ putstr (char *string, unsigned long flags)
     lm = 0;
 
 #ifdef MULTIBYTE_SUPPORT
-    (void) mbtowc (NULL, NULL, 0); /* reset shift state */
+    if (mbtowc (NULL, NULL, 0)) {} /* reset shift state */
     char_len = 0;
 #else
     NMH_UNUSED (char_len);