Project

General

Profile

Actions

Bug #2698

closed

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

Added by ryandesign about 9 years ago. Updated about 9 years ago.

Status:
Fixed
Priority:
Normal
Category:
-
Target version:
ASK QUESTIONS IN Forums:

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.


Files

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
Actions #1

Updated by stbuehler about 9 years ago

Can you please test the attached patch?

Actions #2

Updated by ryandesign about 9 years ago

Thanks, it does compile with that patch.

Actions #3

Updated by stbuehler about 9 years ago

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

Applied in changeset r3064.

Actions

Also available in: Atom