@@ -54,7 +54,7 @@
/* rounds to the first 4 byte multiple on 32 bit archs
- * and to the first 8 byte mutlipe on 64 bit archs */
+ * and to the first 8 byte multipe on 64 bit archs */
#define ROUND4(s) \
(((s)+(sizeof(char*)-1))&(~(sizeof(char*)-1)))
@@ -319,7 +319,7 @@ int udp_rcv_loop()
else goto error;
}
/* we must 0-term the messages, receive_msg expects it */
- buf[len+1]=0; /* no need to save the previous char */
+ buf[len]=0; /* no need to save the previous char */
#ifndef NO_ZERO_CHECKS
if (len==0) {