freebsd-ports/vietnamese/vnconvert/files/patch-vn78.c
David E. O'Brien 78ee82535f 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).
2001-03-25 16:46:39 +00:00

8 lines
285 B
C

--- 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--) {