diff --git a/misc/debug_tools/acrn_crashlog/acrnprobe/loop.c b/misc/debug_tools/acrn_crashlog/acrnprobe/loop.c index ad6db22ba..ee27e4aa6 100644 --- a/misc/debug_tools/acrn_crashlog/acrnprobe/loop.c +++ b/misc/debug_tools/acrn_crashlog/acrnprobe/loop.c @@ -231,7 +231,7 @@ int loopdev_check_parname(const char *loopdev, const char *parname) /* only look into the primary super block */ if (super.s_volume_name[0]) { close(fd); - return !strcmp((const char *)super.s_volume_name, parname); + return !strncmp((const char *)super.s_volume_name, parname, EXT2_LABEL_LEN); } break; }