cprintf("%d Send registration...\n", SEND_LISTING);
a=0;
- while (client_gets(buf), strcmp(buf,"000")) {
+ while (client_getln(buf, sizeof buf), strcmp(buf,"000")) {
if (a==0) vcard_set_prop(my_vcard, "n", buf, 0);
if (a==1) strcpy(tmpaddr, buf);
if (a==2) strcpy(tmpcity, buf);