- if (*cp >= '0' && *cp <= '9')
- recWord.index_type = '0'; /* the default is 0 (raw) */
- else
- recWord.index_type = *cp++; /* type given */
-
- if (tinfo->segments)
- {
- if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT
- ZINT_FORMAT " %39s %n",
- &recWord.record_id, &recWord.section_id,
- &recWord.segment,
- &recWord.seqno,
- field, &nor) < 5)
+ type_cstr[1] = '\0';
+ if (*cp >= '0' && *cp <= '9')
+ type_cstr[0] = '0'; /* the default is 0 (raw) */
+ else
+ type_cstr[0] = *cp++; /* type given */
+ type_cstr[1] = '\0';
+
+ recWord.index_type = type_cstr;
+ if (tinfo->segments)