waffle

user and group backend daemon
git clone git://git.2f30.org/waffle.git
Log | Files | Refs | LICENSE

commit 3ac84a94abb4c09224d899139228a790d18a9f1f
parent 05447eb3b34ad9b29e1743779e59cc0a25f8c76f
Author: sin <sin@2f30.org>
Date:   Sat Mar  7 18:42:32 +0000

Style fix

Diffstat:
req.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/req.c b/req.c @@ -122,7 +122,7 @@ replygr(int clifd, struct group *gr) len = sizeof(header) + header.namelen + header.passwdlen + - header.memcnt * 4 + + header.memcnt * sizeof(uint32_t) + memsize; buf = malloc(len); @@ -138,7 +138,7 @@ replygr(int clifd, struct group *gr) grlens = (uint32_t *)&buf[offset]; for (i = 0; i < header.memcnt; i++) grlens[i] = strlen(gr->gr_mem[i]) + 1; - offset += header.memcnt * 4; + offset += header.memcnt * sizeof(uint32_t); memcpy(buf + offset, gr->gr_name, header.namelen); offset += header.namelen;