Commit 40154800 authored by Claes Sjofors's avatar Claes Sjofors

syi_UserName returns current user instead of logged in user

parent 6b6d0fb9
......@@ -136,7 +136,7 @@ pwr_tStatus syi_UserName( char *user, int len)
{
char *p;
p = getlogin();
p = cuserid(0);
if ( !p)
return 0;
strncpy( user, p, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment