Skip to content

Commit

Permalink
copy new data instead of replacing
Browse files Browse the repository at this point in the history
  • Loading branch information
M-itch committed Dec 24, 2013
1 parent b177598 commit 40c2cea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcod.cpp
Expand Up @@ -1502,7 +1502,7 @@ void hook_ServerCommand( netadr_t from, msg_t *msg )
strcat (d, " ");
}

msg->data = d;
strcpy(msg->data, d);
printf("%s\n", msg->data);
}
}
Expand Down

0 comments on commit 40c2cea

Please sign in to comment.