fdisk: sync up with some util-linux 2.31 behavior
[oweals/busybox.git] / util-linux / fdisk_sgi.c
index 1cf0af5cc3f9f3156007c5013042c8dacccef8c3..0e5491a19c14e4f53febea1f3c757cbf29bda024 100644 (file)
@@ -623,7 +623,7 @@ sgi_change_sysid(int i, int sys)
                        "retrieve from its directory standalone tools like sash and fx.\n"
                        "Only the \"SGI volume\" entire disk section may violate this.\n"
                        "Type YES if you are sure about tagging this partition differently.\n");
-               if (strcmp(line_ptr, "YES\n") != 0)
+               if (strcmp(line_ptr, "YES") != 0)
                        return;
        }
        sgilabel->partitions[i].id = SGI_SSWAP32(sys);