diff --git a/src/files.c b/src/files.c
index d71c115f20c77a6ddc96c074f981cb58fcce7a90..515412b02f78b666aaa97f7e18c4aed000f9043c 100644
--- a/src/files.c
+++ b/src/files.c
@@ -2082,8 +2082,8 @@ char *input_tab(char *buf, size_t *place, bool *lastwastab, bool *list)
 
 	    *lastwastab = FALSE;
 	    buf = charealloc(buf, common_len + buf_len - *place + 1);
-	    charmove(buf + common_len, buf + *place,
-		buf_len - *place + 1);
+	    charmove(buf + common_len, buf + *place, buf_len -
+		*place + 1);
 	    strncpy(buf, mzero, common_len);
 	    *place = common_len;
 	} else if (*lastwastab == FALSE || num_matches < 2)