Menu

#530 Database.get_info() ends with '\0'

closed
Archiving
5
2013-07-09
2012-09-03
No

Hello,

Doing Database.get_info() I get a std::string with an extra '\0' at the end. Example (in raw format):

"TANGO Database sys/database/2\n \nRunning since 2012-08-28 09:24:12\n \nDevices defined = 83\nDevices exported = 74\nDevice servers defined = 11\nDevice servers exported = 7\n \nDevice properties defined = 1882 [History lgth = 11878]\nClass properties defined = 187 [History lgth = 1305]\nDevice attribute properties defined = 742 [History lgth = 6843]\nClass attribute properties defined = 0 [History lgth = 0]\nObject properties defined = 10 [History lgth = 61]\n\0"

Normally C++ cout cuts at the '\0' so you don't notice that there is an extra '\0'.

Could you fix this please? Thanks in advance.

The problem occurs in both 7.2.6 and 8.0.5

Discussion

  • Emmanuel Taurel

    Emmanuel Taurel - 2012-09-10
    • status: open --> open-fixed
     
  • Emmanuel Taurel

    Emmanuel Taurel - 2012-09-10

    Bug fix available in Tango 8.0.5 patch file p805_1.diff available on pink site

     
  • Emmanuel Taurel

    Emmanuel Taurel - 2013-06-06
    • Category: --> C++_API
     
  • Emmanuel Taurel

    Emmanuel Taurel - 2013-07-09
    • status: open-fixed --> closed
    • Category: C++_API --> Archiving
     
  • Emmanuel Taurel

    Emmanuel Taurel - 2013-07-09

    Fixed in release 8.1.2

     

Log in to post a comment.

MongoDB Logo MongoDB