Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit a9967b46 authored by Rob Swindell's avatar Rob Swindell 💬

Fix memcmp() usage problem introduced in previous commit

Caught by GCC.
parent 1d317681
......@@ -441,7 +441,7 @@ const char* iniTimeStr(time_t t)
void fwrite_echostat_msg(FILE* fp, const echostat_msg_t* msg, const char* prefix)
{
echostat_msg_t zero = {{0}};
if(memcmp(msg, &zero, sizeof(msg)) == 0)
if(memcmp(msg, &zero, sizeof(*msg)) == 0)
return;
if(msg->to[0]) fprintf(fp, "%s.to = %s\n" , prefix, msg->to);
if(msg->from[0]) fprintf(fp, "%s.from = %s\n" , prefix, msg->from);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment