Shorten more redundant programmer description for -c \? -p part

This commit is contained in:
Stefan Rueger 2022-09-20 22:03:40 +01:00
parent 505d53c2e1
commit 0175ffd21f
No known key found for this signature in database
GPG Key ID: B0B4F1FD86B1EC55
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ static void pmshorten(char *desc, const char *modes) {
for(size_t i=0; i<sizeof pairs/sizeof*pairs; i++) {
size_t elen = strlen(pairs[i].end);
if(len > elen && strcmp(desc+len-elen, pairs[i].end) == 0 && strcmp(modes, pairs[i].mode) == 0) {
if(len > elen && strcasecmp(desc+len-elen, pairs[i].end) == 0 && strcmp(modes, pairs[i].mode) == 0) {
desc[len-elen] = 0;
break;
}