Re: [dev] [sbase] [PATCH] ls: Always leave room for the NULL byte in the link target

2014-12-08 Thread Dimitris Papastamos
On Mon, Dec 08, 2014 at 02:19:34AM +, Michael Forney wrote: > Otherwise, if the length of the link target is the same as BUFSIZ, we > will try to write past the end of buf. Should we perhaps be using PATH_MAX for this? I will apply this patch and we can fix it up later.

[dev] [sbase] [PATCH] ls: Always leave room for the NULL byte in the link target

2014-12-07 Thread Michael Forney
Otherwise, if the length of the link target is the same as BUFSIZ, we will try to write past the end of buf. --- ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ls.c b/ls.c index b48391b..a2fb5cb 100644 --- a/ls.c +++ b/ls.c @@ -291,7 +291,7 @@ output(Entry *ent)