Module Name: src
Committed By: kre
Date: Thu Jul 11 03:55:58 UTC 2024
Modified Files:
src/tests/lib/libc/string: t_bm.c
Log Message:
Correct a thinko in previous...
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/lib/libc/string/t_bm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/string/t_bm.c
diff -u src/tests/lib/libc/string/t_bm.c:1.2 src/tests/lib/libc/string/t_bm.c:1.3
--- src/tests/lib/libc/string/t_bm.c:1.2 Thu Jul 11 03:51:18 2024
+++ src/tests/lib/libc/string/t_bm.c Thu Jul 11 03:55:58 2024
@@ -1,4 +1,4 @@
-/* $Id: t_bm.c,v 1.2 2024/07/11 03:51:18 kre Exp $ */
+/* $Id: t_bm.c,v 1.3 2024/07/11 03:55:58 kre Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$Id: t_bm.c,v 1.2 2024/07/11 03:51:18 kre Exp $");
+__RCSID("$Id: t_bm.c,v 1.3 2024/07/11 03:55:58 kre Exp $");
#include <atf-c.h>
#include <stdio.h>
@@ -77,8 +77,8 @@ ATF_TC_BODY(bm, tc)
bm_pat *pattern;
for (ts = 0; ts < sizeof(testcases)/sizeof(t_testcase); ts++) {
- ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern),
- strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq));
+ ATF_CHECK((pattern = bm_comp((const u_char *)testcases[ts].pattern,
+ strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq)));
ATF_REQUIRE((text = strdup(testcases[ts].text)));
off = bm_exec(pattern, (u_char *)text, strlen(text));