Use strdup() in Client_textmessage().
authorTilman Sauerbeck <tilman@code-monkey.de>
Mon, 1 Jan 2018 10:58:56 +0000 (11:58 +0100)
committerTilman Sauerbeck <tilman@code-monkey.de>
Mon, 1 Jan 2018 18:12:54 +0000 (19:12 +0100)
commitd9280fa11ed4cb6cc0f36394c5d57350464973b3
tree6a008e8afbdc6e143d3fcbe4ed0326f3613c5ac4
parent0dd4061209039b7c96d05f87e6267ec5a6e71c77
Use strdup() in Client_textmessage().

This is more efficient than the combination of malloc(), strlen() and
strcpy() that we used before.
src/client.c