Menu

#1511 Resource Tag displaying is not ok in hpiinv and hpipower

2.15.0
closed-fixed
5
2010-05-21
2010-05-21
Anton Pak
No

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.

Discussion

  • Anton Pak

    Anton Pak - 2010-05-21
     
  • Anton Pak

    Anton Pak - 2010-05-21
    • status: open --> closed-fixed
     
  • Anton Pak

    Anton Pak - 2010-05-21

    Fixed in trunk (rev #7079)

     
MongoDB Logo MongoDB