Changeset 43039
- Timestamp:
- Jun 1, 2026, 9:41:05 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-pstamp-20260421/Ohana/src/opihi/cmd.data/read_vectors.c
r42389 r43039 310 310 char *value = NULL; 311 311 if (IsCSV) { 312 char *end = parse_nextword_csv (ptr); 313 if (end) { 314 value = end ? strncreate (ptr, end - ptr) : strcreate (ptr); 315 } 312 char *end = parse_nextword_csv (ptr); // parse_nextword_csv returns pointer to start of next word 313 value = end ? strncreate (ptr, end - ptr - 1) : strcreate (ptr); // strip separating comma 316 314 } else { 317 315 value = thisword(ptr); … … 329 327 if (IsCSV) { 330 328 char *end = parse_nextword_csv (ptr); 331 if (end) { 332 value = end ? strncreate (ptr, end - ptr) : strcreate (ptr); 333 } 329 value = end ? strncreate (ptr, end - ptr - 1) : strcreate (ptr); // strip separating comma 334 330 } else { 335 331 value = thisword(ptr);
Note:
See TracChangeset
for help on using the changeset viewer.
