From 867ab8cb1fbe6370ae9bcbe8c7a1102f55a45383 Mon Sep 17 00:00:00 2001 From: darkcoven Date: Mon, 31 Dec 2012 12:51:24 +0100 Subject: [PATCH] Lib: fixed a compilation bug occuring on Ubuntu. --- lib/src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5