Skip to content

Commit 965d8ba

Browse files
author
Yuguo Zhang
committed
example vcard: fix for building with msvc
1 parent a73196d commit 965d8ba

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

examples/vcard.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,10 @@ static void vcard_photo(vcard_t *vc, xmpp_stanza_t *stanza)
6161
copy = (char *)malloc(strlen(s) + 1);
6262
assert(copy != NULL);
6363
copy[0] = '\0';
64-
#ifdef _WIN32
65-
tok = strtok_s(s, "\n\r", &saveptr);
66-
#else
6764
tok = strtok_r(s, "\n\r", &saveptr);
68-
#endif
6965
while (tok != NULL) {
7066
strcat(copy, tok);
71-
#ifdef _WIN32
72-
tok = strtok_s(NULL, "\n\r", &saveptr);
73-
#else
7467
tok = strtok_r(NULL, "\n\r", &saveptr);
75-
#endif
7668
}
7769

7870
xmpp_base64_decode_bin(vc->ctx, copy, strlen(copy), &img, &img_size);

0 commit comments

Comments
 (0)