On Mon, 12 Sep 2016 13:00:32 +0200
Tim Ruehsen <[email protected]> wrote:

> On Saturday, September 10, 2016 12:49:50 PM CEST Matthew White wrote:
> 
> > +int metalink_check_safe_path(const char *path);
> 
> One space before (, please ;-)

Fixed. Posting after final decisions are taken about open topics in this series 
of patches.

> 
> > +  char *basename = name;
> > +
> > +  while ((name = strstr (basename, "/")))
> > +    basename = name + 1;
> 
> Could you use strrchr() ? something like
> 
> char *basename = strrchr (name, '/');
> 
> if (basename)
>   basename += 1;
> else
>   basename = name;

Thanks, a very elegant solution. It's still an open topic, though.

> 
> Regards, Tim

Regards,
Matthew

-- 
Matthew White <[email protected]>

Attachment: pgpXTERIHw9KR.pgp
Description: PGP signature

Reply via email to