changeset 62:90c6052410ce

Don't truncate the candidate include path strings. It causes malloc debug assertions.
author David A. Holland
date Sun, 31 Mar 2013 01:27:46 -0400
parents cf4c97cebbd9
children 5e24746d8335
files directive.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/directive.c	Sun Mar 31 01:20:17 2013 -0400
+++ b/directive.c	Sun Mar 31 01:27:46 2013 -0400
@@ -279,11 +279,13 @@
 	if (len > 2 && line[0] == '"' && line[len-1] == '"') {
 		line[len-1] = '\0';
 		file_readquote(p, line+1);
+		line[len-1] = '"';
 		return true;
 	}
 	if (len > 2 && line[0] == '<' && line[len-1] == '>') {
 		line[len-1] = '\0';
 		file_readbracket(p, line+1);
+		line[len-1] = '>';
 		return true;
 	}
 	return false;