diff options
| author | David Nugent <davidn@FreeBSD.org> | 1997-01-29 06:31:42 +0000 |
|---|---|---|
| committer | David Nugent <davidn@FreeBSD.org> | 1997-01-29 06:31:42 +0000 |
| commit | f9074e29fc2aca5b26f986f5e1d997fbb61172d3 (patch) | |
| tree | a65f7f8b979d18cb5eedb75e80861f3be47a8334 | |
| parent | 93aa55544d513efab49071f0de8ea916e6d3fe79 (diff) | |
Notes
| -rw-r--r-- | lib/libutil/login_cap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libutil/login_cap.c b/lib/libutil/login_cap.c index 392f320890f7..d8e0f62f4e4a 100644 --- a/lib/libutil/login_cap.c +++ b/lib/libutil/login_cap.c @@ -476,7 +476,7 @@ login_getcapsize(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) { rlim_t val = STRTOV(res, &ep, 0); if ((res == NULL) || (res == ep) || errno) return error; - switch (*ep) { + switch (*ep++) { case 0: /* end of string */ ep--; mult = 1; @@ -496,6 +496,7 @@ login_getcapsize(login_cap_t *lc, const char *cap, rlim_t def, rlim_t error) { default: return error; } + res = ep; tot += (val * mult); } return tot; |
