Fix build issue with C++
This commit is contained in:
1 parent
a1a49ebf4b
commit
8a4a019973
1 file changed
+1
-1
+1
-1
@@ -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++; \
|
||||
|
||||
Reference in new issue
Block a user