From 655fe3107058017a6d4e618be03b91b119457354 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 22 Feb 1997 01:07:27 +0000 Subject: update from main archive 970221 --- shadow/sgetspent_r.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'shadow') diff --git a/shadow/sgetspent_r.c b/shadow/sgetspent_r.c index ba2e8186bc..8678ac816a 100644 --- a/shadow/sgetspent_r.c +++ b/shadow/sgetspent_r.c @@ -51,9 +51,12 @@ LINE_PARSER else { STRING_FIELD (result->sp_pwdp, ISCOLON, 0); - INT_FIELD (result->sp_lstchg, ISCOLON, 0, 10, (long int)); - INT_FIELD (result->sp_min, ISCOLON, 0, 10, (long int)); - INT_FIELD (result->sp_max, ISCOLON, 0, 10, (long int)); + INT_FIELD_MAYBE_NULL (result->sp_lstchg, ISCOLON, 0, 10, (long int), + (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_min, ISCOLON, 0, 10, (long int), + (long int) -1); + INT_FIELD_MAYBE_NULL (result->sp_max, ISCOLON, 0, 10, (long int), + (long int -1); while (isspace (*line)) ++line; if (*line == '\0') -- cgit v1.2.3