K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-04-05T18:14:58.579866Z K 7 svn:log V 312 The getlogin_basic() function can return a 0 status with a NULL pointer for the login name (result). Make sure to handle that case properly. Improve robustness by checking namelen and then nul-terminating the provided buffer to simplify subsequent logic. Obtained from: Juniper Networks, Inc. MFC after: 1 week END