Skip to content

Commit

Permalink
workaround for badly typed strdupa on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Oct 3, 2024
1 parent 6d0511a commit 32aa1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/tcpsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int tcpConnToUdpOptions, int tcpKeepAliveInterval, struct in_addr* storeIntf) {
struct in_addr intf;
intf.s_addr = INADDR_ANY;
if (pos) {
char* str = strdupa(server);
char* str = (char*)strdupa(server); // (char*) needed for wrong return type on e.g. Alpine
char* ifa = strchr(str, '@');
ifa[0] = 0;
ifa++;
Expand Down

0 comments on commit 32aa1e3

Please sign in to comment.