[SSH] Fix wrong sizeof in read_hosts_file

This commit is contained in:
Dave Davenport 2019-06-24 22:09:19 +02:00
parent 9a5ae427d9
commit 14955e5508
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ static SshEntry *read_hosts_file ( SshEntry * retv, unsigned int *length )
if ( !found ) {
// Add this host name to the list.
retv = g_realloc ( retv,
( ( *length ) + 2 ) * sizeof ( char* ) );
( ( *length ) + 2 ) * sizeof ( SshEntry ) );
retv[( *length )].hostname = g_strdup ( token );
retv[( *length )].port = 0;
retv[( *length ) + 1].hostname = NULL;