Code: char *my_asctime(time_t t)
{
	struct tm *tm;
	char *str;
         int len;
 
 	tm = localtime(&t);
 	str = g_strdup(asctime(tm));
 
 	len = strlen(str);
	if (len > 0) str[len-1] = '\0';
        return str;
}

Vulnerability Type: 
CWE ID: CWE-416
Summary: An issue was discovered in Irssi before 1.0.4. While updating the internal nick list, Irssi could incorrectly use the GHashTable interface and free the nick while updating it. This would then result in use-after-free conditions on each access of the hash table.
Commit Message: Merge branch 'security' into 'master'

Security

Closes #10

See merge request !17