Skip to content

Commit

Permalink
[PATCH] fs/udf/udftime.c: fix off by one error
Browse files Browse the repository at this point in the history
This patch fixes an off by one error found by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed May 5, 2005
1 parent 2527952 commit f59154c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/udf/udftime.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ udf_stamp_to_time(time_t *dest, long *dest_usec, kernel_timestamp src)
offset = 0;

if ((src.year < EPOCH_YEAR) ||
(src.year > EPOCH_YEAR+MAX_YEAR_SECONDS))
(src.year >= EPOCH_YEAR+MAX_YEAR_SECONDS))
{
*dest = -1;
*dest_usec = -1;
Expand Down

0 comments on commit f59154c

Please sign in to comment.