Re: [PATCH] strlen() retruns size_t, not int.

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

 



On Sun, Apr 6, 2008 at 1:54 PM, James Youngman <jay@xxxxxxx> wrote:
> ---
>   login-utils/islocal.c |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
>  diff --git a/login-utils/islocal.c b/login-utils/islocal.c
>  index 1ee8408..2976980 100644
>  --- a/login-utils/islocal.c
>  +++ b/login-utils/islocal.c
>  @@ -40,7 +40,7 @@ is_local(char *user)
>          }
>
>         len = strlen(user);
>  -        while(fgets(line, MAX_LENGTH, fd) > 0) {
>  +        while(fgets(line, MAX_LENGTH, fd)) {
>                  if(!strncmp(line, user, len) && line[len] == ':') {
>                         local = 1;
>                         break;
What has this hunk with the subject in common?

Bert
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux