mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Fix amd64 build
PR: ports/102846 Submitted by: Stanislav Sedov (maintainer) YAPHR via kris
This commit is contained in:
parent
c4be907bd4
commit
1a87ef43b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=172184
2 changed files with 34 additions and 1 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= safestr
|
||||
PORTVERSION= 1.0.3
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://www.zork.org/software/
|
||||
|
||||
|
|
33
devel/safestr/files/patch-safefmt.c
Normal file
33
devel/safestr/files/patch-safefmt.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
--- safefmt.c.orig Mon Sep 4 17:28:27 2006
|
||||
+++ safefmt.c Mon Sep 4 18:07:39 2006
|
||||
@@ -489,10 +489,10 @@
|
||||
SET_ARGLIST_TYPE(format_arg, type);
|
||||
}
|
||||
|
||||
- ap = arglist->ap;
|
||||
+ va_copy(ap, arglist->ap);
|
||||
for (x = arglist->current; x < max_arg; x++)
|
||||
load_argument(x, arglist);
|
||||
- arglist->ap = ap;
|
||||
+ va_copy(arglist->ap, ap);
|
||||
|
||||
arglist->max = max_arg;
|
||||
arglist->scanned = 1;
|
||||
@@ -675,7 +675,7 @@
|
||||
arglist.current = 0;
|
||||
arglist.max = 0;
|
||||
arglist.scanned = 0;
|
||||
- arglist.ap = ap;
|
||||
+ va_copy(arglist.ap, ap);
|
||||
memset(arglist.list, 0, sizeof(arglist.list));
|
||||
|
||||
cs_d = 0;
|
||||
@@ -683,7 +683,7 @@
|
||||
padding = NULL;
|
||||
*nbytes = padding_size = 0;
|
||||
arglist.current = arglist.max = arglist.scanned = 0;
|
||||
- arglist.ap = ap;
|
||||
+ va_copy(arglist.ap, ap);
|
||||
trusted = (ifmt->hdr.flags & SAFESTR_TRUSTED) == SAFESTR_TRUSTED;
|
||||
|
||||
for (c = start = ifmt->str; c < ifmt->str + ifmt->hdr.length; start = ++c)
|
Loading…
Add table
Reference in a new issue