summaryrefslogtreecommitdiff
path: root/parttypes.cc
diff options
context:
space:
mode:
authorGilles Moris <gilles.moris@free.fr>2019-05-15 07:33:38 +0200
committerGilles Moris <gilles.moris@free.fr>2019-05-15 07:33:38 +0200
commitf9d08a6b6bf0bae229f45eeebeeacc64d4369151 (patch)
treeebecf4d6799394c59283f7930594b11083acb53c /parttypes.cc
parent522273e3db5823aedf6af8786cb01a316367ed32 (diff)
downloadsgdisk-f9d08a6b6bf0bae229f45eeebeeacc64d4369151.tar.gz
Perform case insensitive search of partition types
Diffstat (limited to 'parttypes.cc')
-rw-r--r--parttypes.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/parttypes.cc b/parttypes.cc
index 38b9193..9508933 100644
--- a/parttypes.cc
+++ b/parttypes.cc
@@ -510,10 +510,10 @@ void PartType::ShowAllTypes(int maxLines) const {
cout.unsetf(ios::uppercase);
if (maxLines > 0) {
cout << "Type search string, or <Enter> to show all codes: ";
- matchString = ReadString();
+ matchString = ToLower(ReadString());
} // if
while (thisType != NULL) {
- found = thisType->name.find(matchString);
+ found = ToLower(thisType->name).find(matchString);
if ((thisType->display == 1) && (found != string::npos)) { // show it
cout.fill('0');
cout.width(4);