From 2efc0247e7bb105e854a0b1ba0955ea8d3154433 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 5 Jan 2010 23:29:18 +0000 Subject: [PATCH] * read reply.... --- citadel/utils/chkpwd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/citadel/utils/chkpwd.c b/citadel/utils/chkpwd.c index 604ff9b85..7e9f39010 100644 --- a/citadel/utils/chkpwd.c +++ b/citadel/utils/chkpwd.c @@ -39,12 +39,13 @@ int main(void) { uid_t uid; + size_t siz; char buf[SIZ]; while (1) { buf[0] = '\0'; - read(0, &uid, sizeof(uid_t)); /* uid */ - read(0, buf, 256); /* password */ + siz = read(0, &uid, sizeof(uid_t)); /* uid */ + siz = read(0, buf, 256); /* password */ if (buf[0] == '\0') return (0); -- 2.30.2