mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-04-16 00:45:27 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user