Re: [PATCH 1/2] fopencookie.3: printf()'s .* expects an int; cast accordingly

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

 



Hello ALex,

On 9/7/20 12:21 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx>
> ---
>  man3/fopencookie.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks. Patch applied.

Cheers,

Michael

> diff --git a/man3/fopencookie.3 b/man3/fopencookie.3
> index 472a7f3d2..5394ce4a5 100644
> --- a/man3/fopencookie.3
> +++ b/man3/fopencookie.3
> @@ -438,7 +438,7 @@ main(int argc, char *argv[])
>              break;
>          }
>  
> -        printf("/%.*s/\en", nread, buf);
> +        printf("/%.*s/\en", (int) nread, buf);
>      }
>  
>      exit(EXIT_SUCCESS);
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/



[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