diff --git a/src/search.c b/src/search.c
index 53d3ac35a4ef5e62f82abafaa851ce760603d9c1..c27feec2ab838da84e6ebc9f9154f1e85fe9b51e 100644
--- a/src/search.c
+++ b/src/search.c
@@ -152,7 +152,7 @@ int search_init(bool replacing, bool use_answer)
 	char *disp = display_string(last_search, 0, COLS / 3, FALSE);
 
 	buf = charalloc(strlen(disp) + 7);
-	/* We use COLS / 3 here because we need to see more on the
+	/* We use (COLS / 3) here because we need to see more on the
 	 * line. */
 	sprintf(buf, " [%s%s]", disp,
 		strlenpt(last_search) > COLS / 3 ? "..." : "");