From 755f765c3a44c1d7649d4e299d85e06c15046b71 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 1 Jun 2014 11:01:18 +0000 Subject: [PATCH] PR kern/48815: do not skip ';' twice when comparing file versions. Patch from Thomas Schmitt. --- sys/fs/cd9660/cd9660_util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/fs/cd9660/cd9660_util.c b/sys/fs/cd9660/cd9660_util.c index a8d0ef23803d..bc7d13a71c68 100644 --- a/sys/fs/cd9660/cd9660_util.c +++ b/sys/fs/cd9660/cd9660_util.c @@ -1,4 +1,4 @@ -/* $NetBSD: cd9660_util.c,v 1.10 2011/09/27 01:01:43 christos Exp $ */ +/* $NetBSD: cd9660_util.c,v 1.11 2014/06/01 11:01:18 martin Exp $ */ /*- * Copyright (c) 1994 @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cd9660_util.c,v 1.10 2011/09/27 01:01:43 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cd9660_util.c,v 1.11 2014/06/01 11:01:18 martin Exp $"); #include #include @@ -117,7 +117,6 @@ isofncmp(const u_char *fn, size_t fnlen, const u_char *isofn, size_t isolen, case ';': break; } - fn++; for (i = 0; fnlen-- != 0; i = i * 10 + *fn++ - '0') { if (*fn < '0' || *fn > '9') { return -1;