LP64 fix: don't store a long at the address of an int variable.

Approved by:	maintainer
This commit is contained in:
Christian Weisgerber 2010-08-10 14:53:09 +00:00
parent 6f93f55519
commit 4f477f5b38
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=259070
2 changed files with 18 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= wml PORTNAME= wml
PORTVERSION= 2.0.12 PORTVERSION= 2.0.12
PORTREVISION= 2 PORTREVISION= 3
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= www lang CATEGORIES= www lang
MASTER_SITES= ${MASTER_SITE_BERLIOS} MASTER_SITES= ${MASTER_SITE_BERLIOS}

View file

@ -0,0 +1,17 @@
--- 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