thingmenu

A simple graphical menu launcher for X11.
git clone git://r-36.net/thingmenu
Log | Files | Refs | LICENSE

commit 6a3e0e66058e4b5329f625b57623ef4a5f932ba9
parent 4d946a52a430e60110e87bcb3cb049374e8b4f27
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed,  7 Sep 2011 22:32:04 +0200

Removing bzero calls. Thanks Streng.

Diffstat:
thingmenu.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/thingmenu.c b/thingmenu.c @@ -598,7 +598,7 @@ main(int argc, char *argv[]) entries = realloc(entries, sizeof(entries[0])*(++nentries)); entries[nentries-1] = malloc(sizeof(*entries[0])); - bzero(entries[nentries-1], sizeof(*entries[0])); + memset(entries[nentries-1], 0, sizeof(*entries[0])); entries[nentries-1]->label = strdup(label); if (entries[nentries-1]->label == NULL) @@ -613,7 +613,7 @@ main(int argc, char *argv[]) if (addexit) { entries = realloc(entries, sizeof(entries[0])*(++nentries)); entries[nentries-1] = malloc(sizeof(*entries[0])); - bzero(entries[nentries-1], sizeof(*entries[0])); + memset(entries[nentries-1], 0, sizeof(*entries[0])); entries[nentries-1]->label = strdup("cancel"); entries[nentries-1]->cmd = "exit"; entries[nentries-1]->forceexit = True;