Skip to content

Commit 16a830f

Browse files
committed
Merge branch 'cp/sideband-array-index-comment-fix' into maint-2.43
In-code comment fix. * cp/sideband-array-index-comment-fix: sideband.c: remove redundant 'NEEDSWORK' tag
2 parents d690c8e + 03bcc93 commit 16a830f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sideband.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ void list_config_color_sideband_slots(struct string_list *list, const char *pref
6969
* of the line. This should be called for a single line only, which is
7070
* passed as the first N characters of the SRC array.
7171
*
72-
* NEEDSWORK: use "size_t n" instead for clarity.
72+
* It is fine to use "int n" here instead of "size_t n" as all calls to this
73+
* function pass an 'int' parameter. Additionally, the buffer involved in
74+
* storing these 'int' values takes input from a packet via the pkt-line
75+
* interface, which is capable of transferring only 64kB at a time.
7376
*/
7477
static void maybe_colorize_sideband(struct strbuf *dest, const char *src, int n)
7578
{

0 commit comments

Comments
 (0)