]> code.citadel.org Git - citadel.git/blobdiff - webcit/locate_host.c
* Use safestrncpy() instead of strncpy() where appropriate
[citadel.git] / webcit / locate_host.c
index 68715d49f898a02c18bd147f09f192e66ba9dc16..fce39363afd63d96a5d95bd23bef8598be6658e9 100644 (file)
@@ -50,6 +50,6 @@ void locate_host(char *tbuf, int client_socket)
                sprintf(tbuf, "%d.%d.%d.%d", a1, a2, a3, a4);
                return;
        }
-       strncpy(tbuf, ch->h_name, 64);
+       safestrncpy(tbuf, ch->h_name, 64);
        tbuf[63] = 0;
 }