Commit Diff


commit - 0c70b22b8b6c6545fc32677adf1399090fee7273
commit + 359b29cbe1fd2b48f3974ac65bf33933bd603715
blob - fe5d6bdfcdaf63ab174a3545272057b5fcce6664
blob + e3ff3471259d8b552c269af649f1db0869b5778a
--- lib/diff_myers.c
+++ lib/diff_myers.c
@@ -1059,7 +1059,7 @@ diff_algo_myers(const struct diff_algo_config *algo_co
 	size_t kd_len = max + 1 + max;
 	size_t kd_buf_size = kd_len * kd_len;
 	size_t kd_state_size = kd_buf_size * sizeof(int);
-	debug("state size: %zu\n", kd_buf_size);
+	debug("state size: %zu\n", kd_state_size);
 	if (kd_buf_size < kd_len /* overflow? */
 	    || kd_state_size > algo_config->permitted_state_size) {
 		debug("state size %zu > permitted_state_size %zu, use fallback_algo\n",