do not overflow type element
This commit is contained in:
1 parent
5b94bcb59e
commit
8777e016ca
5 files changed
+33
-13
No files matched your search
@@ -170,9 +170,9 @@ int machine_get_fs(mounts_type fs[], int *cnt)
|
||||
#endif
|
||||
)
|
||||
{
|
||||
snprintf(fs[statcnt].dev, 255, "%s", pp->f_mntfromname);
|
||||
snprintf(fs[statcnt].dev, 255, "%s", pp->f_mntfromname);
|
||||
snprintf(fs[statcnt].mpoint, 255, "%s", pp->f_mntonname);
|
||||
snprintf(fs[statcnt].type, 255, "%s", pp->f_fstypename);
|
||||
snprintf(fs[statcnt].type, 63, "%s", pp->f_fstypename);
|
||||
|
||||
fs[statcnt].blocks = pp->f_blocks;
|
||||
if (fs[statcnt].blocks > 0)
|
||||
|
||||
Reference in new issue
Block a user