mirror of
https://github.com/lbonn/rofi
synced 2024-11-22 11:53:11 +00:00
[SSH] Fix wrong sizeof in read_hosts_file
This commit is contained in:
parent
9a5ae427d9
commit
14955e5508
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue