Fixed compiler warnings

This commit is contained in:
2024-06-10 10:41:49 -04:00
parent 21b3d4197a
commit c5ea4fc3e8
4 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ int uri_parse( const char *uri, uri_parts *parsed )
strncpy( parsed->port, port, sizeof(parsed->port) );
}
if ( path )
strncat( parsed->path, path, sizeof(parsed->path) );
strncat( parsed->path, path, sizeof(parsed->path)-1 );
return ret;
}