- Table[cur].hash = hash;
- Table[cur].suffix = hash_suffix;
- strncpy(Table[cur].email, fields[0], sizeof(Table[cur].email));
- strncpy(Table[cur].nick, fields[2], sizeof(Table[cur].nick));
- Table[cur].trust = *fields[4];
- Table[cur].public = public;
+ ++table_count;
+ safe_realloc(&table, sizeof(smime_id) * table_count);
+ table[cur].hash = hash;
+ table[cur].suffix = hash_suffix;
+ strncpy(table[cur].email, fields[0], sizeof(table[cur].email));
+ strncpy(table[cur].nick, fields[2], sizeof(table[cur].nick));
+ table[cur].trust = *fields[4];
+ table[cur].public = public;