openbsd-ports/lang/ocaml/patches/patch-yacc_reader_c

12 lines
327 B
Plaintext
Raw Normal View History

$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;
}