LP64 fix: don't store a long at the address of an int variable.
Approved by: maintainer
This commit is contained in:
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
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= wml
|
||||
PORTVERSION= 2.0.12
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= www lang
|
||||
MASTER_SITES= ${MASTER_SITE_BERLIOS}
|
||||
|
|
17
www/wml/files/patch-wml_backend-p2_mp4h-src-builtin.c
Normal file
17
www/wml/files/patch-wml_backend-p2_mp4h-src-builtin.c
Normal 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
|
Loading…
Reference in a new issue