X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=netconn.c;h=3226f763b34c529ae022a43aa35a641d44ea6773;hp=721b9a0299b594806837bda83e807786af8d139a;hb=49efc53510842f29eccbc160e1aa56c17e575468;hpb=9842ecc109d38eed8bb547787657d2099ae2f999 diff --git a/netconn.c b/netconn.c index 721b9a02..3226f763 100755 --- a/netconn.c +++ b/netconn.c @@ -800,8 +800,8 @@ int NetConn_ClientParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length, hostcache[n].ping = 100000; hostcache[n].querytime = realtime; // build description strings for the things users care about - strncpy(hostcache[n].line1, "?", sizeof(hostcache[n].line1)); - strncpy(hostcache[n].line2, ipstring, sizeof(hostcache[n].line2)); + strlcpy (hostcache[n].line1, "?", sizeof (hostcache[n].line1)); + strlcpy (hostcache[n].line2, ipstring, sizeof (hostcache[n].line2)); // if not in the slist menu we should print the server to console if (m_state != m_slist) Con_Printf("querying %s\n", ipstring);