]> code.citadel.org Git - citadel.git/blobdiff - citadel/serv_chat.c
* lots of warning fixes; builds with -std1 on dec unix
[citadel.git] / citadel / serv_chat.c
index 72d368f07f25c235fad7f7707e2eba0cbf3bd6ae..57c6c852c6165f4739e1a23b53de3dafb2a9a356 100644 (file)
@@ -86,7 +86,7 @@ void allwrite(char *cmdbuf, int flag, char *roomname, char *username)
                }
 
        clnew = (struct ChatLine *) malloc(sizeof(struct ChatLine));
-       bzero(clnew, sizeof(struct ChatLine));
+       memset(clnew, 0, sizeof(struct ChatLine));
        if (clnew == NULL) {
                fprintf(stderr, "citserver: cannot alloc chat line: %s\n",
                        strerror(errno));