[erlang-patches] Re: [PATCH] Unsigned integer may overflow in error message
Henrik Nord
henrik@REDACTED
Thu Apr 7 11:31:53 CEST 2011
On 04/06/2011 08:56 PM, Michael Santos wrote:
> ---
> erts/emulator/drivers/common/efile_drv.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/erts/emulator/drivers/common/efile_drv.c b/erts/emulator/drivers/common/efile_drv.c
> index 4e9b500..6e62342 100644
> --- a/erts/emulator/drivers/common/efile_drv.c
> +++ b/erts/emulator/drivers/common/efile_drv.c
> @@ -410,7 +410,7 @@ struct t_data
> static void *ef_safe_alloc(Uint s)
> {
> void *p = EF_ALLOC(s);
> - if (!p) erl_exit(1, "efile drv: Can't allocate %d bytes of memory\n", s);
> + if (!p) erl_exit(1, "efile drv: Can't allocate %lu bytes of memory\n", (unsigned long)s);
> return p;
> }
>
>
Thank you
this is now cooking in 'pu'
Ill let you know if something breaks
--
/Henrik Nord Erlang/OTP
More information about the erlang-patches
mailing list