From: Eivind Næss Date: Thu, 23 Sep 2021 14:36:43 +0000 (-0700) Subject: Fixing signed vs. unsigned char * in strcpy operation. X-Git-Tag: ppp-2.5.0~56^2~9 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=bf1bb93fea35c0755ca28b0fb251dcabde712b31;ds=sidebyside Fixing signed vs. unsigned char * in strcpy operation. Signed-off-by: Eivind Næss --- diff --git a/pppd/plugins/pppoe/common.c b/pppd/plugins/pppoe/common.c index 6382821..64bed1a 100644 --- a/pppd/plugins/pppoe/common.c +++ b/pppd/plugins/pppoe/common.c @@ -136,7 +136,7 @@ sendPADT(PPPoEConnection *conn, char const *msg) size_t elen = strlen(msg); err.type = htons(TAG_GENERIC_ERROR); err.length = htons(elen); - strcpy(err.payload, msg); + strcpy((char*) err.payload, msg); memcpy(cursor, &err, elen + TAG_HDR_SIZE); cursor += elen + TAG_HDR_SIZE; plen += elen + TAG_HDR_SIZE;