From 1cd410986d39adcb8cfa20001cc4774cc981dbdd Mon Sep 17 00:00:00 2001 From: bouyer Date: Tue, 27 Nov 2001 20:00:36 +0000 Subject: [PATCH] In cn_get_magic() don't increment i in the for(;;) loop, as it's already set to point to the next value with CNS_MAGIC_NEXT(). Now it's obvious that the magic string on my U5 is +++++ and not +++ :) --- sys/kern/cnmagic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/cnmagic.c b/sys/kern/cnmagic.c index 31cba9e63f96..703c05d68d44 100644 --- a/sys/kern/cnmagic.c +++ b/sys/kern/cnmagic.c @@ -1,4 +1,4 @@ -/* $NetBSD: cnmagic.c,v 1.3 2001/11/12 15:25:01 lukem Exp $ */ +/* $NetBSD: cnmagic.c,v 1.4 2001/11/27 20:00:36 bouyer Exp $ */ /* * Copyright (c) 2000 Eduardo Horvath @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cnmagic.c,v 1.3 2001/11/12 15:25:01 lukem Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cnmagic.c,v 1.4 2001/11/27 20:00:36 bouyer Exp $"); #include #include @@ -125,7 +125,7 @@ int cn_get_magic(char *magic, int maglen) { unsigned int i, c; - for (i=0; i