diff options
author | 2018-06-17 14:58:27 +0000 | |
---|---|---|
committer | 2018-06-17 14:58:27 +0000 | |
commit | 472dffbc012f90084c8c71f0da051734d8d6d609 (patch) | |
tree | 09e175d32353cf1454dc5abe6b87eaebecabfc6f | |
parent | Add another missing clock for i.MX7D. This particular clock lives on the (diff) | |
download | wireguard-openbsd-472dffbc012f90084c8c71f0da051734d8d6d609.tar.xz wireguard-openbsd-472dffbc012f90084c8c71f0da051734d8d6d609.zip |
incorrect pointer used, hence gecos expansion was ignored
ok millert
-rw-r--r-- | usr.bin/finger/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c index 380c06682aa..b57351b63bb 100644 --- a/usr.bin/finger/util.c +++ b/usr.bin/finger/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.32 2015/12/26 20:51:35 guenther Exp $ */ +/* $OpenBSD: util.c,v 1.33 2018/06/17 14:58:27 deraadt Exp $ */ /* * Copyright (c) 1989 The Regents of the University of California. @@ -104,7 +104,7 @@ userinfo(PERSON *pn, struct passwd *pw) if (!(p = strsep(&bp, ","))) return; expandusername(p, pw->pw_name, name, sizeof(name)); - if (stravis(&pn->realname, p, VIS_SAFE|VIS_NOSLASH) == -1) + if (stravis(&pn->realname, name, VIS_SAFE|VIS_NOSLASH) == -1) err(1, "stravis"); if ((p = strsep(&bp, ",")) && *p) { if (stravis(&pn->office, p, VIS_SAFE|VIS_NOSLASH) == -1) |