]> git.ozlabs.org Git - ppp.git/commitdiff
Fixing signed vs. unsigned char * in strcpy operation.
authorEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 14:36:43 +0000 (07:36 -0700)
committerEivind Næss <eivnaes@yahoo.com>
Thu, 23 Sep 2021 14:36:43 +0000 (07:36 -0700)
Signed-off-by: Eivind Næss <eivnaes@yahoo.com>
pppd/plugins/pppoe/common.c

index 638282184e4fb8e19b1ccbed6e0fb14bba4c518b..64bed1af6ca63df5de7344bbdc85c8ea262f22e8 100644 (file)
@@ -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;