From 78f4becd718dfc9cb03a0f3731d5ca229e6491ad Mon Sep 17 00:00:00 2001 From: David Crocker Date: Thu, 24 Jul 2014 11:48:25 +0100 Subject: [PATCH] Updated network/ethernet_sam.c Committed a file that was accidentally omitted in the version 0.78e commit --- network/ethernet_sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/ethernet_sam.c b/network/ethernet_sam.c index c881b09..d4a3ebd 100644 --- a/network/ethernet_sam.c +++ b/network/ethernet_sam.c @@ -235,7 +235,7 @@ void status_callback(struct netif *netif) { RepRapNetworkMessage("Network up, IP="); ipaddr_ntoa_r(&(netif->ip_addr), c_mess, sizeof(c_mess)); - strncat(c_mess, sizeof(c_mess) - 1, "\n"); + strncat(c_mess, sizeof(c_mess) - strlen(c_mess) - 1, "\n"); RepRapNetworkMessage(c_mess); netif->flags |= NETIF_FLAG_LINK_UP; }