Note that the patch slogan needs to include the ticket number.

/AndersBj

-----Original Message-----
From: Anders Björnerstedt [mailto:[email protected]] 
Sent: den 9 april 2015 18:42
To: [email protected]; Zoran Milinkovic
Cc: [email protected]
Subject: Re: [devel] [PATCH 1 of 1] imm : Size must be incrmented to include 
end of the string for ccbobjectcreate_o3 and rtObjectCreate_o3

Ack from me
Not tested.

/AndersBj

-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: den 9 april 2015 16:49
To: Anders Björnerstedt; Zoran Milinkovic
Cc: [email protected]
Subject: [PATCH 1 of 1] imm : Size must be incrmented to include end of the 
string for ccbobjectcreate_o3 and rtObjectCreate_o3

 osaf/services/saf/immsv/immnd/ImmModel.cc |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/osaf/services/saf/immsv/immnd/ImmModel.cc 
b/osaf/services/saf/immsv/immnd/ImmModel.cc
--- a/osaf/services/saf/immsv/immnd/ImmModel.cc
+++ b/osaf/services/saf/immsv/immnd/ImmModel.cc
@@ -652,7 +652,7 @@ immModel_ccbObjectCreate(IMMND_CB *cb,
         req->attrValues = attr;
 
         // Add parent to req
-        req->parentOrObjectDn.size = parentName.size();
+        req->parentOrObjectDn.size = parentName.size()+1;
         memcpy(req->parentOrObjectDn.buf, parentName.c_str(), 
req->parentOrObjectDn.size);
     }
 
@@ -1971,7 +1971,7 @@ immModel_rtObjectCreate(IMMND_CB *cb,
         req->attrValues = attr;
 
         // Add parent to req
-        req->parentOrObjectDn.size = parentName.size();
+        req->parentOrObjectDn.size = parentName.size()+1;
         memcpy(req->parentOrObjectDn.buf, parentName.c_str(), 
req->parentOrObjectDn.size);
     }
 

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own 
process in accordance with the BPMN 2 standard Learn Process modeling best 
practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ 
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Opensaf-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-devel

Reply via email to