Merge "Copy latest code"
[ric-plt/e2mgr.git] / E2Manager / rmrCgo / rmrCgoUtils.go
index b0ce30c..ca29747 100644 (file)
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-//
+
+//  This source code is part of the near-RT RIC (RAN Intelligent Controller)
+//  platform project (RICP).
+
 
 package rmrCgo
 
@@ -31,7 +34,7 @@ import (
 
 func convertToMBuf(logger *logger.Logger, m *C.rmr_mbuf_t) *MBuf {
        payloadArr := C.GoBytes(unsafe.Pointer(m.payload),C.int(m.len))
-       xActionArr := C.GoBytes(unsafe.Pointer(m.xaction),RMR_MAX_XACTION_LEN)
+       xActionArr := C.GoBytes(unsafe.Pointer(m.xaction),C.int(RMR_MAX_XACTION_LEN))
 
        // Trim padding (space and 0)
        xActionStr :=  strings.TrimRight(string(xActionArr),"\040\000")