Project

General

Profile

Bug #2698

safe_memclear.c:44:18: error: too few arguments to function call, expected 4, have 3

Added by ryandesign almost 2 years ago. Updated almost 2 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
2015-12-05
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

Hello, I'm the maintainer of lighttpd in MacPorts. lighttpd 1.4.37 builds fine on OS X 10.11, but lighttpd 1.4.38 fails:

safe_memclear.c:44:18: error: too few arguments to function call, expected 4, have 3
        memset_s(s, 0, n);
        ~~~~~~~~        ^
/usr/include/string.h:145:1: note: 'memset_s' declared here
errno_t memset_s(void *, rsize_t, int, rsize_t) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
^
1 error generated.

I'll attach the full log file.

main.log (86.2 KB) main.log ryandesign, 2015-12-05 13:55
0001-core-fix-memset_s-call-fixes-2698.patch (703 Bytes) 0001-core-fix-memset_s-call-fixes-2698.patch stbuehler, 2015-12-05 14:21

Associated revisions

Revision 3064 (diff)
Added by stbuehler almost 2 years ago

[core] fix memset_s call (fixes #2698)

From: Stefan Bühler <>

Revision 737d4f0f (diff)
Added by stbuehler almost 2 years ago

[core] fix memset_s call (fixes #2698)

From: Stefan Bühler <>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3064 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by stbuehler almost 2 years ago

Can you please test the attached patch?

#2 Updated by ryandesign almost 2 years ago

Thanks, it does compile with that patch.

#3 Updated by stbuehler almost 2 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r3064.

Also available in: Atom