Module Name: src
Committed By: joerg
Date: Fri Oct 7 22:31:05 UTC 2016
Modified Files:
src/sbin/ping: ping.c
Log Message:
Make optspace an array of uint8_t, since some of the bytes written into
it are outside the signed char range.
To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sbin/ping/ping.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/ping/ping.c
diff -u src/sbin/ping/ping.c:1.111 src/sbin/ping/ping.c:1.112
--- src/sbin/ping/ping.c:1.111 Sun Jul 31 18:14:36 2016
+++ src/sbin/ping/ping.c Fri Oct 7 22:31:05 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ping.c,v 1.111 2016/07/31 18:14:36 dholland Exp $ */
+/* $NetBSD: ping.c,v 1.112 2016/10/07 22:31:05 joerg Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.111 2016/07/31 18:14:36 dholland Exp $");
+__RCSID("$NetBSD: ping.c,v 1.112 2016/10/07 22:31:05 joerg Exp $");
#endif
#include <stdio.h>
@@ -181,7 +181,7 @@ static struct {
#define opack_icmp out_pack.o_u.u_icmp
static struct ip *opack_ip;
-static char optspace[MAX_IPOPTLEN]; /* record route space */
+static uint8_t optspace[MAX_IPOPTLEN]; /* record route space */
static int optlen;
static int npackets; /* total packets to send */