From 71a591195618271973a12ae7ffaf288909481cbc Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Wed, 21 Mar 2007 10:54:54 +0000 Subject: Cleanups. APM battery info fixes for Linux 2.6. --- hardinfo2/arch/linux/common/os.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux/common/os.h') diff --git a/hardinfo2/arch/linux/common/os.h b/hardinfo2/arch/linux/common/os.h index b4404925..d30146ef 100644 --- a/hardinfo2/arch/linux/common/os.h +++ b/hardinfo2/arch/linux/common/os.h @@ -75,7 +75,9 @@ detect_desktop_environment(OperatingSystem * os) obtain the version. */ version = popen("gnome-panel --version", "r"); if (version) { - fscanf(version, "Gnome gnome-panel %d.%d", &maj, &min); + char gnome[10]; + + fscanf(version, "%s gnome-panel %d.%d", gnome, &maj, &min); if (pclose(version)) goto unknown; } else { -- cgit v1.2.3