Fixes Issue #1: authinfo does not end with \0