From: darkcoven Date: Mon, 31 Dec 2012 11:51:24 +0000 (+0100) Subject: Lib: fixed a compilation bug occuring on Ubuntu. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=867ab8cb1fbe6370ae9bcbe8c7a1102f55a45383;p=ngadmin Lib: fixed a compilation bug occuring on Ubuntu. --- diff --git a/lib/src/protocol.c b/lib/src/protocol.c index 05677a8..6c400f4 100644 --- a/lib/src/protocol.c +++ b/lib/src/protocol.c @@ -47,7 +47,7 @@ void initNgHeader (struct ng_header *nh, char code, const struct ether_addr *cli } nh->seqnum=htonl(seqnum); - strcpy(nh->proto_id, "NSDP"); + memcpy(nh->proto_id, "NSDP", 4); }