summaryrefslogtreecommitdiff
path: root/command/markad-standalone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'command/markad-standalone.cpp')
-rw-r--r--command/markad-standalone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp
index fb88cca..edd5dd7 100644
--- a/command/markad-standalone.cpp
+++ b/command/markad-standalone.cpp
@@ -158,7 +158,7 @@ void *cOSDMessage::send(void *posd)
struct sockaddr_in name;
name.sin_family = AF_INET;
name.sin_port = htons(osd->port);
- memcpy(&name.sin_addr.s_addr,host->h_addr,sizeof(host->h_addr));
+ memcpy(&name.sin_addr.s_addr,host->h_addr,host->h_length);
uint size = sizeof(name);
int sock;