X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fvcard_edit.c;fp=webcit%2Fvcard_edit.c;h=eda369b42b253c3c23179b5e5fc5dc827d95e9db;hp=975ea239f0f203783d33fda4b6ef7a43d3778522;hb=b3a15939bdee9bc729492575a2b191562c9a38b3;hpb=474295ee86514e7949ed2d965a56c776d10d5126 diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index 975ea239f..eda369b42 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -1080,7 +1080,7 @@ void do_addrbook_view(vcardview_struct* VS) { int tabfirst = 0; int tablast = 0; int page = 0; - const char **tablabels; + const StrBuf **tablabels; int num_ab = GetCount(VS->addrbook); HashList *headlines; HashPos *it; @@ -1102,7 +1102,7 @@ void do_addrbook_view(vcardview_struct* VS) { num_pages = (GetCount(VS->addrbook) / NAMESPERPAGE) + 1; - tablabels = malloc(num_pages * sizeof (char *)); + tablabels = malloc(num_pages * sizeof (StrBuf *)); if (tablabels == NULL) { return; } @@ -1132,11 +1132,10 @@ void do_addrbook_view(vcardview_struct* VS) { StrBufAppendBuf(headline, a2->name, 0); } } - tablabels[i] = ChrPtr(headline); + tablabels[i] = headline; Put(headlines, LKEY(i), headline, HFreeStrBuf); } - - tabbed_dialog(num_pages, tablabels); + StrTabbedDialog(WC->WBuf, num_pages, tablabels); page = (-1);