projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aadf6fb
)
* read reply....
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 5 Jan 2010 23:29:18 +0000
(23:29 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 5 Jan 2010 23:29:18 +0000
(23:29 +0000)
citadel/utils/chkpwd.c
patch
|
blob
|
history
diff --git
a/citadel/utils/chkpwd.c
b/citadel/utils/chkpwd.c
index 604ff9b857626890da360ac169cc370e35366bbc..7e9f39010357bd64d9ded9116732b007b7eec4b9 100644
(file)
--- 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);