2009-03-11 17:19:49 -04:00
|
|
|
$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)
|
2007-02-08 09:32:57 -05:00
|
|
|
for (i = 0; i < len; i++){
|
|
|
|
buf[i] = str[start+i];
|
|
|
|
}
|
|
|
|
+ buf[i] = '\0';
|
|
|
|
return buf;
|
|
|
|
}
|
|
|
|
|