diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-05 15:43:49 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-05 15:43:49 +0000 |
commit | 2bb6b3e50619d10b93a8a2640dd4784e01e97236 (patch) | |
tree | 95bcb1bdb2ff003af4ded3ac8ed0873d68dad219 /winsup/cygwin/grp.cc | |
parent | e9259cb240fbd18e5e47617a6e236a26107d6ded (diff) | |
download | cygnal-2bb6b3e50619d10b93a8a2640dd4784e01e97236.tar.gz cygnal-2bb6b3e50619d10b93a8a2640dd4784e01e97236.tar.bz2 cygnal-2bb6b3e50619d10b93a8a2640dd4784e01e97236.zip |
* dtable.cc (handle_to_fn): Check error return value from NtQueryObject first
before seeing if name buffer is NULL.
* grp.cc (read_etc_group): Fix gcc warning regarding snprintf format.
* passwd.cc (read_etc_passwd): Ditto.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r-- | winsup/cygwin/grp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc index 25d2ff864..54725c227 100644 --- a/winsup/cygwin/grp.cc +++ b/winsup/cygwin/grp.cc @@ -186,7 +186,7 @@ read_etc_group () &domain_name_len, &acType)) { char strbuf[100]; - snprintf (linebuf, sizeof (linebuf), "%s:%s:%u:", + snprintf (linebuf, sizeof (linebuf), "%s:%s:%lu:", group_name, tg.string (strbuf), *GetSidSubAuthority(tg, |