]> git.deb.at Git - pkg/abook.git/blobdiff - edit.c
remover a debug message
[pkg/abook.git] / edit.c
diff --git a/edit.c b/edit.c
index 100488d78e866c9302bb9acd589363f903609c85..8a2e1e98f247f28fbd1068fc7f99cbbedb8cfaa8 100644 (file)
--- a/edit.c
+++ b/edit.c
@@ -38,7 +38,7 @@ editor_tab(const int tab)
 {
        int i;
        const int spacing = 12;
-       const char *tab_names[] = {
+       static char *tab_names[] = {
                "CONTACT",
                "ADDRESS",
                " PHONE ",
@@ -147,7 +147,7 @@ print_editor_header(int item)
        else
                snprintf(header, EDITW_COLS, "%s", database[item][NAME]);
 
-       mvwaddstr(editw, 0, (EDITW_COLS - strlen(header)) / 2,
+       mvwaddstr(editw, 0, (EDITW_COLS - strwidth(header)) / 2,
                        header);
 
        free(header);