r3085 - in trunk/src/target/OM-2007.2/applications/openmoko-dialer2: . src

thomas at sita.openmoko.org thomas at sita.openmoko.org
Thu Oct 4 18:17:11 CEST 2007


Author: thomas
Date: 2007-10-04 18:17:10 +0200 (Thu, 04 Oct 2007)
New Revision: 3085

Modified:
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
   trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
Log:
Patch by: Roman Moravcik <roman.moravcik at gmail.com>

* src/moko-contacts.c: (moko_contacts_fuzzy_lookup): Fix
for a bug 802, (add_number): Fix accessing of digits array.


Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-10-04 16:10:12 UTC (rev 3084)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/ChangeLog	2007-10-04 16:17:10 UTC (rev 3085)
@@ -1,5 +1,12 @@
 2007-10-04  Thomas Wood  <thomas at openedhand.com>
 
+	Patch by: Roman Moravcik <roman.moravcik at gmail.com>
+
+	* src/moko-contacts.c: (moko_contacts_fuzzy_lookup): Fix
+	for a bug 802, (add_number): Fix accessing of digits array.
+
+2007-10-04  Thomas Wood  <thomas at openedhand.com>
+
 	* src/moko-contacts.c: (moko_contacts_init):
 	* src/moko-keypad.c: (moko_keypad_set_display_text):
 

Modified: trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c
===================================================================
--- trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-10-04 16:10:12 UTC (rev 3084)
+++ trunk/src/target/OM-2007.2/applications/openmoko-dialer2/src/moko-contacts.c	2007-10-04 16:17:10 UTC (rev 3085)
@@ -87,7 +87,7 @@
     gint n = c - '0';
 
     if (n < 0 || n > 9)
-      n = 11;
+      n = 10;
 
     if (cur->digits[n])
     {
@@ -130,6 +130,9 @@
     gchar c = number[i];
     gint n = c - '0';
 
+    if (n < 0 || n > 9)
+      n = 10;
+
     if (!cur->digits[n])
       return NULL;
 





More information about the commitlog mailing list