summaryrefslogtreecommitdiff
path: root/libmate-desktop/display-name.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-09-28 17:48:06 +0300
committerStefano Karapetsas <[email protected]>2012-09-28 17:48:06 +0300
commitaf012d9af49683a439c110d89a7c4ab0d21f8cca (patch)
treed15f2a45ecdda0610d4916154cdbf9ab2816067f /libmate-desktop/display-name.c
parent5e90f169ff97704906622a64c4cde6c15d4a78e0 (diff)
downloadmate-desktop-af012d9af49683a439c110d89a7c4ab0d21f8cca.tar.bz2
mate-desktop-af012d9af49683a439c110d89a7c4ab0d21f8cca.tar.xz
Update libmate-desktop/display-name.c
patch reported by NiceandGently taken from fedora downstream gnome-desktop
Diffstat (limited to 'libmate-desktop/display-name.c')
-rw-r--r--libmate-desktop/display-name.c2
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';