[gnome-screensaver] Fix parenthesis typo which was causing memory corruption
- From: Yanko Kaneti <yaneti src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Fix parenthesis typo which was causing memory corruption
- Date: Thu, 9 Dec 2010 11:23:52 +0000 (UTC)
commit 336d7f97223278a5f33aa668cb4b8bbaa3fead7b
Author: Yanko Kaneti <yaneti declera com>
Date: Thu Dec 9 13:22:18 2010 +0200
Fix parenthesis typo which was causing memory corruption
src/gnome-screensaver-preferences.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-screensaver-preferences.c b/src/gnome-screensaver-preferences.c
index 5eaa7b8..89faf5f 100644
--- a/src/gnome-screensaver-preferences.c
+++ b/src/gnome-screensaver-preferences.c
@@ -204,7 +204,7 @@ get_all_theme_ids (GSThemeManager *theme_manager)
guint idx = 0;
entries = gs_theme_manager_get_info_list (theme_manager);
- ids = g_new0 (gchar *, g_slist_length (entries + 1));
+ ids = g_new0 (gchar *, g_slist_length (entries) + 1);
for (l = entries; l; l = l->next) {
GSThemeInfo *info = l->data;
ids[idx++] = g_strdup (gs_theme_info_get_id (info));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]