We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82d6ab commit 1cf6580Copy full SHA for 1cf6580
count.c
@@ -461,7 +461,7 @@ int get_usb_nr(void)
461
int get_filesystem_nr(void)
462
{
463
FILE *fp;
464
- char line[256], fs_name[MAX_FS_LEN], mountp[128];
+ char line[512], fs_name[MAX_FS_LEN], mountp[256];
465
int fs = 0;
466
struct statvfs buf;
467
@@ -474,7 +474,8 @@ int get_filesystem_nr(void)
474
if (line[0] == '/') {
475
476
/* Read filesystem name and mount point */
477
- sscanf(line, "%71s %127s", fs_name, mountp);
+ sscanf(line, "%127s", fs_name);
478
+ sscanf(strchr(line, ' ') + 1, "%255s", mountp);
479
480
/* Replace octal codes */
481
oct2chr(mountp);
0 commit comments