Casting list_peek(filenames) to (char *) for format string