openbsd-ports/www/analog/patches/patch-src_init_c
naddy da0859a09c Fix several out of bounds accesses.
Parts from Wolfgang S. Rupprecht via PR 4175; testing by Sam Smith.
2005-04-18 22:32:36 +00:00

20 lines
428 B
Plaintext

$OpenBSD: patch-src_init_c,v 1.1 2005/04/18 22:32:36 naddy Exp $
--- src/init.c.orig Mon Apr 18 22:47:03 2005
+++ src/init.c Mon Apr 18 22:47:31 2005
@@ -1435,7 +1435,6 @@ choice strtoinfmt(Inputformat **ans, cha
c++;
if (*c == 'S')
done = TRUE;
- c++;
}
}
if (!done) {
@@ -1446,7 +1445,6 @@ choice strtoinfmt(Inputformat **ans, cha
c++;
if (*c == 's')
*c = 'S';
- c++;
}
}
}