From af9f0e612d0290d4d909c16d8f7877e7cc1c565f Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 17 Jan 2014 18:53:22 +0100 Subject: correct wrong usage of memset --- src/StatsServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/StatsServer.cpp') diff --git a/src/StatsServer.cpp b/src/StatsServer.cpp index 1d2984e..4ae92d6 100644 --- a/src/StatsServer.cpp +++ b/src/StatsServer.cpp @@ -211,7 +211,7 @@ void StatsServer::serverThread() } /* receive command */ - memset(buffer, 256, 0); + memset(buffer, 0, 256); int n = read(accepted_sock, buffer, 255); if (n < 0) { etiLog.level(warn) << "Error reading from Stats Server socket " << -- cgit v1.2.3