r5253 jmb - /trunk/hubbub/test/testutils.h

netsurf at semichrome.net netsurf at semichrome.net
Fri Sep 5 12:42:07 BST 2008


Author: jmb
Date: Fri Sep  5 06:42:07 2008
New Revision: 5253

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

Modified:
    trunk/hubbub/test/testutils.h

Modified: trunk/hubbub/test/testutils.h
URL: http://source.netsurf-browser.org/trunk/hubbub/test/testutils.h?rev=5253&r1=5252&r2=5253&view=diff
==============================================================================
--- trunk/hubbub/test/testutils.h (original)
+++ trunk/hubbub/test/testutils.h Fri Sep  5 06:42:07 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