openbsd-ports/lang/ocaml/patches/patch-yacc_reader_c
avsm 25c5604b41 update ocaml to 3.11.0
tested by krw@ and Richard Bonichon <richard.bonichon@gmail.com>
2009-03-11 21:19:49 +00:00

12 lines
327 B
Plaintext

$OpenBSD: patch-yacc_reader_c,v 1.2 2009/03/11 21:19:49 avsm Exp $
--- yacc/reader.c.orig Thu Oct 6 07:34:51 2005
+++ yacc/reader.c Thu Nov 27 22:42:14 2008
@@ -163,6 +163,7 @@ char *substring (char *str, int start, int len)
for (i = 0; i < len; i++){
buf[i] = str[start+i];
}
+ buf[i] = '\0';
return buf;
}