do not overflow type element

This commit is contained in:
marschap committed 2006-10-29 17:11:00 +00:00
1 parent 5b94bcb59e
commit 8777e016ca
5 files changed
+33 -13

No files matched your search

+1 -1
View File
@@ -172,7 +172,7 @@ int machine_get_fs(mounts_type fs[], int *cnt)
{
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)