fixed pbp import

This commit is contained in:
TLINDEN
2014-01-28 20:05:46 +01:00
parent 3f1bfef581
commit 68d8f640e6
4 changed files with 9 additions and 10 deletions

View File

@@ -401,14 +401,14 @@ int pcp_importpublic (vault_t *vault, FILE *in, int pbpcompat) {
goto errimp1;
}
char *parts = strtok (tmp, "|");
char *parts = strtok (tmp, "<>");
int pnum = 0;
while (parts != NULL) {
if(pnum == 0)
memcpy(pub->owner, parts, strlen(parts));
else if (pnum == 1)
memcpy(pub->mail, parts, strlen(parts));
parts = strtok(NULL, "|");
parts = strtok(NULL, "<>");
pnum++;
}
free(parts);