mirror of
https://github.com/glest/glest-source.git
synced 2025-08-12 11:24:00 +02:00
- more coverity based fixes
This commit is contained in:
@@ -170,7 +170,7 @@ int ftpStat(const char* path, ftpPathInfo_S *info)
|
||||
|
||||
gr = getgrgid(fileInfo.st_gid);
|
||||
if(gr)
|
||||
strncpy(info->group, gr->gr_name, sizeof(info->group));
|
||||
strncpy(info->group, gr->gr_name, sizeof(info->group)-1);
|
||||
else
|
||||
snprintf(info->group, 20,"%04d", fileInfo.st_gid);
|
||||
|
||||
|
Reference in New Issue
Block a user