SaHpiTextBufferT is not a zero-terminated string. So the code printf( "%s", (char*)(TextBuffer.Data)) is incorrect. It leads to producing garbage trailing output.
Files: clients/hpiinv.c, clients/hpipower.c
The patch is attached.
Fixed in trunk (rev #7079)
Fixed in trunk (rev #7079)