COMPMID-1710 fix CL context creation

Change-Id: I7171ea887ae01e3f505bf5a5760d0d7d882b9916
Signed-off-by: John Kesapides <john.kesapides@arm.com>
Reviewed-on: https://review.mlplatform.org/711
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-by: Pablo Marquez <pablo.tello@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
diff --git a/src/runtime/CL/CLHelpers.cpp b/src/runtime/CL/CLHelpers.cpp
index 449d7d5..533e6fa 100644
--- a/src/runtime/CL/CLHelpers.cpp
+++ b/src/runtime/CL/CLHelpers.cpp
@@ -65,7 +65,7 @@
             CL_PRINTF_BUFFERSIZE_ARM, 0x1000,
             0
         };
-        std::copy_n(prop, 7, properties_printf);
+        std::copy_n(properties_printf, 7, prop);
     }
     else
 #endif // defined(ARM_COMPUTE_ASSERTS_ENABLED)
@@ -75,7 +75,7 @@
             CL_CONTEXT_PLATFORM, reinterpret_cast<cl_context_properties>(platform()),
             0
         };
-        std::copy_n(prop, 3, properties);
+        std::copy_n(properties, 3, prop);
     };
 }
 } //namespace