freebsd-ports/www/wml/files/patch-wml_backend-p2_mp4h-src-builtin.c
Christian Weisgerber 4f477f5b38 LP64 fix: don't store a long at the address of an int variable.
Approved by:	maintainer
2010-08-10 14:53:09 +00:00

17 lines
389 B
C

--- wml_backend/p2_mp4h/src/builtin.c.orig
+++ wml_backend/p2_mp4h/src/builtin.c
@@ -1069,10 +1069,13 @@
static void
mp4h_bp_mp4h_output_radix (MP4H_BUILTIN_ARGS)
{
+ long int temp;
+
if (bad_argc (argv[0], argc, 0, 2))
return;
- safe_strtol (ARG (0), ARG (1), (long int *) &output_radix);
+ safe_strtol (ARG (0), ARG (1), &temp);
+ output_radix = temp;
}
static void