Re: [PATCH] getline.3: wfix

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

 



On 07/12/2017 10:10 AM, Long Wang wrote:
> Signed-off-by: Long Wang <w@xxxxxxxxxxxxx>

Thanks, Long. Patch applied.

Cheers,

Michael

> ---
>  man3/getline.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/man3/getline.3 b/man3/getline.3
> index 7483afd..9bc4d8e 100644
> --- a/man3/getline.3
> +++ b/man3/getline.3
> @@ -173,7 +173,7 @@ main(int argc, char *argv[])
>      ssize_t nread;
>  
>      if (argc != 2) {
> -        fprintf(stderr, "Usage: %s <file>\en", argv[1]);
> +        fprintf(stderr, "Usage: %s <file>\en", argv[0]);
>          exit(EXIT_FAILURE);
>      }
>  
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux 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