Browse files

fun killer anti-aliasing rules

  • Loading branch information...
1 parent 43f13a6 commit 34dcc99014166830efef4366f8281fb6320d9ed7 Caleb James DeLisle committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 interface/UDPInterface.c
View
2 interface/UDPInterface.c
@@ -192,7 +192,7 @@ struct UDPInterface* UDPInterface_new(struct event_base* base,
EVUTIL_CLOSESOCKET(context->socket);
Except_raise(exHandler, -1, "Failed to get socket name [%s]", Errno_strerror(err));
}
- context->boundPort_be = ((struct sockaddr_in*)&addr)->sin_port;
+ Bits_memcpyConst(&context->boundPort_be, &((struct sockaddr_in*)&addr)->sin_port, 2);
evutil_make_socket_nonblocking(context->socket);

0 comments on commit 34dcc99

Please sign in to comment.