[libgda/gtk3] Crasher fixed in gdaui-demo
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] Crasher fixed in gdaui-demo
- Date: Tue, 7 Dec 2010 20:15:02 +0000 (UTC)
commit 2fd02c07508de2a84498609639b18b84055727a6
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Dec 5 15:42:32 2010 +0100
Crasher fixed in gdaui-demo
libgda-ui/demos/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgda-ui/demos/main.c b/libgda-ui/demos/main.c
index 459930a..6c3fe2b 100644
--- a/libgda-ui/demos/main.c
+++ b/libgda-ui/demos/main.c
@@ -485,7 +485,7 @@ load_file (const gchar *filename)
p++;
len = strlen (p);
- while (g_ascii_isspace (*(p + len - 1)))
+ while ((len > 0) && g_ascii_isspace (*(p + len - 1)))
len--;
if (len > 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]