mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 07:31:21 +02:00
- a few bugfixes related to coverity scan
This commit is contained in:
@@ -164,7 +164,7 @@ int ftpStat(const char* path, ftpPathInfo_S *info)
|
||||
|
||||
pw = getpwuid(fileInfo.st_uid);
|
||||
if(pw)
|
||||
strncpy(info->user, pw->pw_name, sizeof(info->user));
|
||||
strncpy(info->user, pw->pw_name, sizeof(info->user)-1);
|
||||
else
|
||||
snprintf(info->user, 20,"%04d", fileInfo.st_uid);
|
||||
|
||||
|
Reference in New Issue
Block a user