Hi,
On Sun, Nov 12, 2023 at 11:36:58PM +0000, Michael Paquier wrote:
> Extend sendFileWithContent() to handle custom content length in basebackup.c
> [...]
> The patch extends sendFileWithContent() to be able to handle this case,
> where len < 0 can be used to indicate an arbitrary length rather than
> rely on strlen() for the content length.
Did you mean >= 0?
- len = strlen(content);
+ if (len < 0)
+ len = strlen(content);