aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2011-04-29 15:43:24 +0200
committerHenrik Nord <[email protected]>2011-04-29 15:43:34 +0200
commitc45fbd98db22b0dca027a022796d58c32d749608 (patch)
tree5add29b5a1add67c9b2773bb3a1e6438f4650d19 /erts/emulator/drivers
parent9051df48646573dbb740b16396bf9b55be288525 (diff)
parent3257bb092473d0fe093c745c5d7dab04c93eb8fe (diff)
downloadotp-c45fbd98db22b0dca027a022796d58c32d749608.tar.gz
otp-c45fbd98db22b0dca027a022796d58c32d749608.tar.bz2
otp-c45fbd98db22b0dca027a022796d58c32d749608.zip
Merge branch 'ms/unsigned-integer-overflow-in-error' into dev
* ms/unsigned-integer-overflow-in-error: Unsigned integer may overflow in error message OTP-9251
Diffstat (limited to 'erts/emulator/drivers')
-rw-r--r--erts/emulator/drivers/common/efile_drv.c2
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 4e9b5005c1..f0ff3f54c5 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;
}