Skip to content

Commit e58a4de

Browse files
committed
Merge branch 'sg/upload-pack-error-message-fix'
An error message from "git upload-pack", which responds to "git fetch" requests, had a trialing NUL in it, which has been corrected. * sg/upload-pack-error-message-fix: upload-pack: don't send null character in abort message to the client
2 parents d31a515 + 3f4c7a0 commit e58a4de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

upload-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ static void create_pack_file(struct upload_pack_data *pack_data,
463463

464464
fail:
465465
free(output_state);
466-
send_client_data(3, abort_msg, sizeof(abort_msg),
466+
send_client_data(3, abort_msg, strlen(abort_msg),
467467
pack_data->use_sideband);
468468
die("git upload-pack: %s", abort_msg);
469469
}

0 commit comments

Comments
 (0)