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

12 lines
320 B
Plaintext
Raw Normal View History

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