liboffloadmic/
* runtime/offload_engine.cpp (Engine::init_process): Fix sizeof.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228210
138bc75d-0d04-0410-961f-
82ee72b054a4
+2015-09-28 Ilya Verbin <ilya.verbin@intel.com>
+
+ PR other/67652
+ * runtime/offload_engine.cpp (Engine::init_process): Fix sizeof.
+
2015-09-08 Ilya Verbin <ilya.verbin@intel.com>
* Makefile.am (liboffloadmic_host_la_DEPENDENCIES): Remove libcoi_host
// use putenv instead of setenv as Windows has no setenv.
// Note: putenv requires its argument can't be freed or modified.
// So no free after call to putenv or elsewhere.
- char * env_var = (char*) malloc(sizeof("COI_DMA_CHANNEL_COUNT=2" + 1));
+ char * env_var = (char*) malloc(sizeof("COI_DMA_CHANNEL_COUNT=2"));
sprintf(env_var, "COI_DMA_CHANNEL_COUNT=2");
putenv(env_var);
}