- { if (strlen(string_buf) >= MAXGEDCLINELEN) {
- gedcom_error("Line too long");
- YYERROR;
- }
- else {
- int i;
- /* The following also takes care of '@@' */
- if (!strncmp($2, "@@", 3))
- *string_buf_ptr++ = '@';
- else
- for (i=0; i < strlen($2); i++)
- *string_buf_ptr++ = $2[i];
- $$ = string_buf;
- }
+ { size_t i;
+ /* The following also takes care of '@@' */
+ if (!strncmp($2, "@@", 3))
+ *line_item_buf_ptr++ = '@';
+ else
+ for (i=0; i < strlen($2); i++)
+ *line_item_buf_ptr++ = $2[i];
+ $$ = line_item_buf;