gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-15


From: Daniele Forsi
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-152-g82174f9
Date: Wed, 23 Dec 2009 13:51:46 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  82174f921ec94defa2d2d684137cdc02a76272da (commit)
      from  dcb626d2a236b77498fdb769dfb87e75b0407292 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=82174f921ec94defa2d2d684137cdc02a76272da


commit 82174f921ec94defa2d2d684137cdc02a76272da
Author: Daniele Forsi <address@hidden>
Date:   Wed Dec 23 14:45:30 2009 +0100

    Make code for entry->person more similar to code for entry->address

diff --git a/common/vcard.c b/common/vcard.c
index 34bce68..27b304b 100644
--- a/common/vcard.c
+++ b/common/vcard.c
@@ -345,6 +345,8 @@ GNOKII_API int gn_vcardstr2phonebook(const char *vcard, 
gn_phonebook_entry *entr
                        buf[--line_len] = '\0';
 
                if (BEGINS("N:")) {
+                       /* 64 is the value of GN_PHONEBOOK_PERSON_MAX_LENGTH */
+                       /* FIXME sscanf() doesn't accept empty fields */
                        if (0 < sscanf(buf +2 , 
"%64[^;];%64[^;];%64[^;];%64[^;];%64[^;]\n",
                                entry->person.family_name,
                                entry->person.given_name,
@@ -354,6 +356,7 @@ GNOKII_API int gn_vcardstr2phonebook(const char *vcard, 
gn_phonebook_entry *entr
                        )) {
                                entry->person.has_person = 1;
                        }
+                       continue;
                }
                STORE("FN:", entry->name);
                STORE("TEL;TYPE=PREF,VOICE:", entry->number);

-----------------------------------------------------------------------

Summary of changes:
 common/vcard.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]