[libgda] Crasher fixed in gdaui-demo
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Crasher fixed in gdaui-demo
- Date: Sun, 5 Dec 2010 14:43:13 +0000 (UTC)
commit fd449203cced423db36cc5cf5b8391a8e9a7bcaa
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]