Fix build issue with C++

This commit is contained in:
Patrick Pelissier committed 2018-05-21 07:23:19 +02:00
1 parent a1a49ebf4b
commit 8a4a019973
1 file changed
+1 -1
+1 -1
View File
@@ -420,10 +420,10 @@
/* A buffer of 400 bytes should be more than enough for all variant names... */ \
char variantTypeBuf[400]; \
int c = *str++; \
unsigned int i = 0; \
if (c != '@') goto exit; \
/* First read the name of the type */ \
c = *str++; \
unsigned int i = 0; \
while (c != '@' && c != 0 && i < sizeof(variantTypeBuf) - 1) { \
variantTypeBuf[i++] = c; \
c = *str++; \