Update of /cvsroot/playerstage/code/player/libplayercore
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2799/libplayercore

Modified Files:
        message.cc 
Log Message:
fix for uninitialised dynamic message size


Index: message.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayercore/message.cc,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** message.cc  23 Aug 2007 19:58:42 -0000      1.24
--- message.cc  27 Aug 2007 03:52:17 -0000      1.25
***************
*** 58,62 ****
                    const void * data,
                    unsigned int data_size,
!                   bool do_deepcopy)
  {
    this->Lock = new pthread_mutex_t;
--- 58,62 ----
                    const void * data,
                    unsigned int data_size,
!                   bool do_deepcopy) : DynDataSize(0)
  {
    this->Lock = new pthread_mutex_t;
***************
*** 67,70 ****
--- 67,71 ----
    this->Data = new unsigned char[this->Size];
    assert(this->Data);
+   
  
    // copy the header and then the data into out message data buffer
***************
*** 96,100 ****
                   unsigned int data_size,
                   QueuePointer &_queue,
!                  bool do_deepcopy)
  {
    this->Queue = _queue;
--- 97,101 ----
                   unsigned int data_size,
                   QueuePointer &_queue,
!                  bool do_deepcopy) : DynDataSize(0)
  {
    this->Queue = _queue;
***************
*** 104,108 ****
    this->Size = sizeof(struct player_msghdr)+data_size;
    assert(this->Size);
-   this->DynDataSize = 0;
    this->Data = new unsigned char[this->Size];
    assert(this->Data);
--- 105,108 ----


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to