[Goodies-commits] r1921 - in xfce4-cpufreq-plugin/trunk: . panel-plugin
Thomas Schreck
shrek at xfce.org
Thu Aug 24 17:45:00 CEST 2006
Author: shrek
Date: 2006-08-24 15:44:58 +0000 (Thu, 24 Aug 2006)
New Revision: 1921
Modified:
xfce4-cpufreq-plugin/trunk/ChangeLog
xfce4-cpufreq-plugin/trunk/panel-plugin/xfce4-cpufreq-linux.c
Log:
* Fix typo
Modified: xfce4-cpufreq-plugin/trunk/ChangeLog
===================================================================
--- xfce4-cpufreq-plugin/trunk/ChangeLog 2006-08-24 15:35:26 UTC (rev 1920)
+++ xfce4-cpufreq-plugin/trunk/ChangeLog 2006-08-24 15:44:58 UTC (rev 1921)
@@ -1,3 +1,7 @@
+2006-08-24 17:45 Thomas Schreck <shrek at xfce.org>
+
+ * Fix typo
+
2006-08-24 17:36 Thomas Schreck <shrek at xfce.org>
* Fix mem leak and bug with more cpus
Modified: xfce4-cpufreq-plugin/trunk/panel-plugin/xfce4-cpufreq-linux.c
===================================================================
--- xfce4-cpufreq-plugin/trunk/panel-plugin/xfce4-cpufreq-linux.c 2006-08-24 15:35:26 UTC (rev 1920)
+++ xfce4-cpufreq-plugin/trunk/panel-plugin/xfce4-cpufreq-linux.c 2006-08-24 15:44:58 UTC (rev 1921)
@@ -106,7 +106,7 @@
if (file)
{
cpu->scaling_driver = g_new (gchar, 15);
- fscanf (file, "%s", cpu->scaling_driver);
+ fscanf (file, "%15s", cpu->scaling_driver);
fclose (file);
}
g_free (filePath);
@@ -135,7 +135,7 @@
if (file)
{
cpu->cur_governor = g_new (gchar, 15);
- fscanf (file, "%d", cpu->cur_governor);
+ fscanf (file, "%15s", cpu->cur_governor);
fclose (file);
}
g_free (filePath);
@@ -209,7 +209,7 @@
file = fopen (filePath, "r");
if (file)
{
- fscanf (file, "%s", cpu->cur_governor);
+ fscanf (file, "%15s", cpu->cur_governor);
fclose (file);
}
g_free (filePath);
More information about the Goodies-commits
mailing list