diff options
Diffstat (limited to 'libmate-desktop/display-name.c')
-rw-r--r-- | libmate-desktop/display-name.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmate-desktop/display-name.c b/libmate-desktop/display-name.c index cbd59d9..85971a7 100644 --- a/libmate-desktop/display-name.c +++ b/libmate-desktop/display-name.c @@ -209,7 +209,7 @@ static void read_pnp_ids(void) { line = lines[i]; - if (line[3] == '\t') + if (line[0] && line[1] && line[2] && line[3] == '\t' && line[4]) { code = line; line[3] = '\0'; |