initialize 'prefix_len' (bug fix), free strdup'd password/group names, fix bug preventing '\n' being logged for 0 length messages