Skip to content
Snippets Groups Projects
Commit 3a590658 authored by Paul Fertser's avatar Paul Fertser
Browse files

jtag/drivers/remote_bitbang: use sizeof to determine maximum unix socket path length


Different *nix systems use different constants, so sizeof should be
used instead. This fixes the build on OS X (as sun_path length is
hardcoded to 104 on Darwin).

Change-Id: I1df611383dedcfc6d153ec59b453a895c7d84e94
Reported-by: default avatarXiaofan Chen <xiaofanc@gmail.com>
Signed-off-by: default avatarPaul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2095


Tested-by: jenkins
Reviewed-by: default avatarSpencer Oliver <spen@spen-soft.co.uk>
Reviewed-by: default avatarXiaofan <xiaofanc@gmail.com>
parent 4835a21d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment