The attribute name was always "" as the size argument was `sizeof(char)` instead of the buffer length.