+ /*
+ * The input text is not NUL terminated, the checksum follows
+ * the value text field. Spaces may interfere with the text to
+ * number conversion, especially with exponent parsing. Copy the
+ * input data to a terminated text buffer and strip spaces in the
+ * process, before running ASCIIZ string operations.
+ */
+ if (len >= sizeof(buf)) {
+ sr_err("Insufficient text conversion buffer size.");
+ return SR_ERR_BUG;