mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
desktop-entry: fix partial string matching
Use the base instead of the full string for the comparison.
This commit is contained in:
parent
3ee12b1e95
commit
6dea8c0dcc
1 changed files with 1 additions and 1 deletions
|
|
@ -268,7 +268,7 @@ get_db_entry_by_id_fuzzy(struct sfdo_desktop_db *db, const char *app_id)
|
||||||
int alen = strlen(app_id);
|
int alen = strlen(app_id);
|
||||||
int dlen = strlen(desktop_id_base);
|
int dlen = strlen(desktop_id_base);
|
||||||
|
|
||||||
if (!strncasecmp(app_id, desktop_id, alen > dlen ? dlen : alen)) {
|
if (!strncasecmp(app_id, desktop_id_base, alen > dlen ? dlen : alen)) {
|
||||||
return entry;
|
return entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue