
The default database was not extracted correctly as the length of the user's name did not include the null terminator. Also the comparison for database name length used the smaller than operator instead of the correct larger than operator.
The default database was not extracted correctly as the length of the user's name did not include the null terminator. Also the comparison for database name length used the smaller than operator instead of the correct larger than operator.