diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-20 10:06:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-20 10:06:26 +0000 |
commit | 55da32fb45c6661857d5e6679bc7474c993a924b (patch) | |
tree | a51f9e8151aecdf4c04e8d486075a3d751812096 /source3/passdb | |
parent | c47cce6dd9553990a5b715befde94b99df7163c6 (diff) | |
download | samba-55da32fb45c6661857d5e6679bc7474c993a924b.tar.gz samba-55da32fb45c6661857d5e6679bc7474c993a924b.tar.bz2 samba-55da32fb45c6661857d5e6679bc7474c993a924b.zip |
clitar.c: Fixed minor gcc -pedantic-error compile warnings.
passdb.c: Fixed stupid bug in read_sid_from_file().
Jeremy.
(This used to be commit e65efe3f78240a4fa1ed7931e96c6fb698d9d8c8)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 2ba856e19b..cc4a8e5c55 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -874,6 +874,8 @@ static BOOL read_sid_from_file(int fd, char *sid_file) { fstring fline; + memset(fline, '\0', sizeof(fline)); + if(read(fd, fline, sizeof(fline) -1 ) < 0) { DEBUG(0,("read_sid_from_file: unable to read file %s. Error was %s\n", sid_file, strerror(errno) )); |