X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=gnu%2Fparse-datetime.c;h=21317c3c07ebc022ee8de919c357962e0690882b;hb=d30babc23b4f25be970ada2e63a50220a3672281;hp=3663bd973c75c7a7e65648701409fea5920661de;hpb=4aa85f09e755fc827cd5ab6225f20c83cd42245d;p=debian%2Ftar diff --git a/gnu/parse-datetime.c b/gnu/parse-datetime.c index 3663bd97..21317c3c 100644 --- a/gnu/parse-datetime.c +++ b/gnu/parse-datetime.c @@ -70,7 +70,7 @@ /* Parse a string into an internal time stamp. - Copyright (C) 1999-2000, 2002-2014 Free Software Foundation, Inc. + Copyright (C) 1999-2000, 2002-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -3024,7 +3024,7 @@ lookup_word (parser_control const *pc, char *word) } static int -yylex (YYSTYPE *lvalp, parser_control *pc) +yylex (union YYSTYPE *lvalp, parser_control *pc) { unsigned char c; size_t count; @@ -3154,7 +3154,7 @@ yylex (YYSTYPE *lvalp, parser_control *pc) do { - if (p - buff < sizeof buff - 1) + if (p < buff + sizeof buff - 1) *p++ = c; c = *++pc->input; }