Re: [PATCH 1/6] path.c: allocate enough memory for string

2016-03-30 Thread Junio C Hamano
Stefan Beller writes: > On Tue, Mar 29, 2016 at 5:57 PM, Eric Sunshine > wrote: >> 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

Re: [PATCH 1/6] path.c: allocate enough memory for string

2016-03-30 Thread Stefan Beller
On Tue, Mar 29, 2016 at 5:57 PM, Eric Sunshine wrote: > 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

Re: [PATCH 1/6] path.c: allocate enough memory for string

2016-03-29 Thread Junio C Hamano
Stefan Beller writes: > `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 > --- > path.c |

Re: [PATCH 1/6] path.c: allocate enough memory for 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 1/6] path.c: allocate enough memory for 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 --- path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff