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

Re: [UNIKRAFT/PTHREAD-EMBEDDED PATCH 1/1] Remove compile warning



Hi,

looks fine to me.

Reviewed-by: Hugo Lefeuvre <hugo.lefeuvre@xxxxxxxxx>

On Wed, 2020-04-22 at 11:44 +0300, George Muraru wrote:
> Signed-off-by: George Muraru <murarugeorgec@xxxxxxxxx>
> ---
>  attributes.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/attributes.c b/attributes.c
> index a7b4842..a5397bd 100644
> --- a/attributes.c
> +++ b/attributes.c
> @@ -145,7 +145,7 @@ int pthread_getname_np(pthread_t thread, char
> *name, size_t len)
>       if (len < _len + 1)
>               return ERANGE;
>  
> -     sprintf(name, _uk_thread->name);
> +     sprintf(name,"%s", _uk_thread->name);
>  
>       return 0;
>  }



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.