[hackers] [scc] [cc2] Fix memset argument || Alexander Krotov

From: <git_AT_suckless.org>
Date: Fri, 15 Apr 2016 10:06:17 +0200 (CEST)

commit a5b0d0b61cad47c7f905ec4eda037a339570b0b8
Author: Alexander Krotov <ilabdsf_AT_yandex.ru>
AuthorDate: Thu Apr 14 01:30:55 2016 +0300
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Fri Apr 15 09:49:54 2016 +0200

    [cc2] Fix memset argument

diff --git a/cc2/node.c b/cc2/node.c
index 67da0ad..2a53825 100644
--- a/cc2/node.c
+++ b/cc2/node.c
_AT_@ -40,7 +40,7 @@ newnode(void)
         np = freep;
         freep = np->left;
 
- return memset(np, 0, sizeof(np));
+ return memset(np, 0, sizeof(*np));
 }
 
 void
Received on Fri Apr 15 2016 - 10:06:17 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 15 2016 - 10:12:19 CEST