openbsd-ports/lang/ocaml/patches/patch-yacc_reader_c
avsm 48ff1ec042 - support shared libraries in OCaml, for dynamic top level to work.
- fix bad string handling in ocamlyacc, spotted by Ray Lai w/ malloc flags
- bump PKGNAME
2007-02-08 14:32:57 +00:00

12 lines
320 B
Plaintext

$OpenBSD: patch-yacc_reader_c,v 1.1 2007/02/08 14:32:57 avsm Exp $
--- yacc/reader.c.orig Fri Dec 29 21:32:48 2006
+++ yacc/reader.c Fri Dec 29 21:36:44 2006
@@ -163,6 +163,7 @@ char *substring (char *str, int start, i
for (i = 0; i < len; i++){
buf[i] = str[start+i];
}
+ buf[i] = '\0';
return buf;
}