Re: [PATCH 2/6] imap-send.c, cram: allocate enough memory for null terminated string

2016-03-29 Thread Jeff King
On Tue, Mar 29, 2016 at 05:38:49PM -0700, Stefan Beller wrote: > `strlen` returns the length of a string without the terminating null byte. > To make sure enough memory is allocated we need to pass `strlen(..) + 1` > to the allocation function. > > Signed-off-by: Stefan Beller

Re: [PATCH 2/6] imap-send.c, cram: allocate enough memory for null terminated string

2016-03-29 Thread Eric Sunshine
On Tue, Mar 29, 2016 at 8:38 PM, Stefan Beller wrote: > `strlen` returns the length of a string without the terminating null byte. > To make sure enough memory is allocated we need to pass `strlen(..) + 1` > to the allocation function. > > Signed-off-by: Stefan Beller

[PATCH 2/6] imap-send.c, cram: allocate enough memory for null terminated string

2016-03-29 Thread Stefan Beller
`strlen` returns the length of a string without the terminating null byte. To make sure enough memory is allocated we need to pass `strlen(..) + 1` to the allocation function. Signed-off-by: Stefan Beller --- imap-send.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)