mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Fix a compiler warning regarding strncat misuse.
This commit is contained in:
parent
4198414118
commit
59cea649c9
1 changed files with 2 additions and 2 deletions
|
@ -209,8 +209,8 @@ void init_alternative_mode()
|
|||
|
||||
static char guard[1024];
|
||||
getcwd(guard, sizeof(guard));
|
||||
strncat(guard, "/", sizeof(guard));
|
||||
strncat(guard, input_filename, sizeof(guard));
|
||||
strncat(guard, "/", sizeof(guard) - strlen(guard) - 1);
|
||||
strncat(guard, input_filename, sizeof(guard) - strlen(guard) - 1);
|
||||
|
||||
for ( char* p = guard; *p; p++ )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue