diff --git a/toolbox/lsof.c b/toolbox/lsof.c index 113c120fc..af321af8c 100644 --- a/toolbox/lsof.c +++ b/toolbox/lsof.c @@ -113,7 +113,7 @@ static void print_maps(struct pid_info_t* info) if (!maps) goto out; - while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode, + while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode, file) == 4) { // We don't care about non-file maps if (inode == 0 || !strcmp(device, "00:00"))