Use strlcat instead of strcat to prevent potential buffer overflow

git-svn-id: file:///home/jj/hercules.svn/trunk@3459 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
Fish (David B Trout)
2005-12-19 00:23:27 +00:00
parent 3fb4725022
commit 79d98438af

View File

@@ -620,7 +620,7 @@ TID httptid; /* Negotiation thread id */
char process_dir[HTTP_PATH_LENGTH];
if (get_process_directory(process_dir,HTTP_PATH_LENGTH) > 0)
{
strcat(process_dir,"\\html");
strlcat(process_dir,"\\html",HTTP_PATH_LENGTH);
sysblk.httproot = strdup(process_dir);
}
else