bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] procfs: another fix for the process file name in stat/status


From: Samuel Thibault
Subject: Re: [PATCH] procfs: another fix for the process file name in stat/status
Date: Sun, 9 Sep 2012 00:22:11 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> +static int args_filename_length (const char *name)
> +{
> +  const char *p = name;
> +  while (*p != '\0' && *p != ' ')
> +    ++p;

Why not using index(name, ' ') here?

> +  return p - name;
> +}

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]