]> git.deb.at Git - pkg/abook.git/blobdiff - edit.c
Updated JH's e-mail address
[pkg/abook.git] / edit.c
diff --git a/edit.c b/edit.c
index a92095e1eaeba95e7551f6cae4e5ae3810dc729f..4aea3c03719877ffaff4cc3d858a21f37052e81c 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -2,7 +2,7 @@
 /*
  * $Id$
  *
- * by JH <jheinonen@bigfoot.com>
+ * by JH <jheinonen@users.sourceforge.net>
  *
  * Copyright (C) Jaakko Heinonen
  */
@@ -168,7 +168,7 @@ editor_print_data(int tab, int item)
                        continue;
                }
                                
-               if(i) {
+               if(j > 1) {
                        getyx(editw, y, x); y++;
                } else
                        y = start_y;
@@ -248,7 +248,7 @@ static void
 edit_emails(char c, int item)
 {
        char *field = NULL;
-       char emails[4][MAX_EMAIL_LEN];
+       char emails[MAX_EMAILS][MAX_EMAIL_LEN];
        char tmp[MAX_EMAILSTR_LEN] = "";
        int i, len;
 
@@ -268,7 +268,7 @@ edit_emails(char c, int item)
        
        my_free(database[item][EMAIL]);
 
-       for(i=0; i<4; i++) {
+       for(i=0; i<MAX_EMAILS; i++) {
                if( *emails[i] ) {
                        strcat(tmp, emails[i]);
                        strcat(tmp, ",");