r5256 jmb - /trunk/libcss/test/testutils.h

netsurf at semichrome.net netsurf at semichrome.net
Fri Sep 5 12:44:37 BST 2008


Author: jmb
Date: Fri Sep  5 06:44:37 2008
New Revision: 5256

URL: http://source.netsurf-browser.org?rev=5256&view=rev
Log:
Fix testutils line reader

Modified:
    trunk/libcss/test/testutils.h

Modified: trunk/libcss/test/testutils.h
URL: http://source.netsurf-browser.org/trunk/libcss/test/testutils.h?rev=5256&r1=5255&r2=5256&view=diff
==============================================================================
--- trunk/libcss/test/testutils.h (original)
+++ trunk/libcss/test/testutils.h Fri Sep  5 06:44:37 2008
@@ -60,7 +60,7 @@
 		if (buf[0] == '\n')
 			continue;
 
-		if (!callback(buf, parse_strlen(buf, sizeof buf), pw)) {
+		if (!callback(buf, parse_strlen(buf, sizeof buf - 1), pw)) {
 			fclose(fp);
 			return false;
 		}




More information about the netsurf-commits mailing list