frugen icon indicating copy to clipboard operation
frugen copied to clipboard

Ascii encoding failure of field with single dash '-'

Open anisse opened this issue 3 years ago • 1 comments

I'm not sure if this is a bug or a byproduct of FRU encoding, but the following command fails with Failed to encode custom field. Memory allocation or field length problem.:

frugen --ascii --chassis-custom - out.fru

Using an empty field "", two, or three dashes works.

anisse avatar Mar 24 '22 16:03 anisse

The same problem occurs with any data field of type text and size 1 because of this line

matsievskiysv avatar Jan 09 '23 04:01 matsievskiysv