Sigh. This code is based on vnlibs. Thus I need to fix the Pascal'ism

where the author thought C arrays are indexed 1..sizeof(array).
This commit is contained in:
David E. O'Brien 2001-03-25 16:46:39 +00:00
parent e1cc9089a6
commit 78ee82535f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40359

View File

@ -0,0 +1,8 @@
--- vn78.c.orig Fri May 20 13:36:15 1994
+++ vn78.c Sun Mar 25 08:34:01 2001
@@ -959 +959 @@
- for (n = sizeof(icode); n; n--) {
+ for (n = sizeof(icode) - 1; n >= 0; n--) {
@@ -1004 +1004 @@
- for (n = sizeof(icode); n; n--) {
+ for (n = sizeof(icode) - 1; n >= 0; n--) {