Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/cd9660 PR kern/48815: do not skip '; ' twice when comp...



details:   https://anonhg.NetBSD.org/src/rev/666628a6937e
branches:  trunk
changeset: 329646:666628a6937e
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jun 01 11:01:18 2014 +0000

description:
PR kern/48815: do not skip ';' twice when comparing file versions.
Patch from Thomas Schmitt.

diffstat:

 sys/fs/cd9660/cd9660_util.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 52c6b1467995 -r 666628a6937e sys/fs/cd9660/cd9660_util.c
--- a/sys/fs/cd9660/cd9660_util.c       Sat May 31 22:55:16 2014 +0000
+++ b/sys/fs/cd9660/cd9660_util.c       Sun Jun 01 11:01:18 2014 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -117,7 +117,6 @@
                        case ';':
                                break;
                        }
-                       fn++;
                        for (i = 0; fnlen-- != 0; i = i * 10 + *fn++ - '0') {
                                if (*fn < '0' || *fn > '9') {
                                        return -1;



Home | Main Index | Thread Index | Old Index