From 3752d68e7d28730e2c5cb091e355e630bbfb591a Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 28 Sep 2016 16:38:48 +0200 Subject: [PATCH] Fix Clang warnings in Nuklear --- deps/nuklear_glfw_gl2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/nuklear_glfw_gl2.h b/deps/nuklear_glfw_gl2.h index 798a3a28..1b6d321a 100644 --- a/deps/nuklear_glfw_gl2.h +++ b/deps/nuklear_glfw_gl2.h @@ -219,7 +219,7 @@ nk_glfw3_clipbard_copy(nk_handle usr, const char *text, int len) if (!len) return; str = (char*)malloc((size_t)len+1); if (!str) return; - memcpy(str, text, (size_t)len); + NK_MEMCPY(str, text, (size_t)len); str[len] = '\0'; glfwSetClipboardString(glfw.win, str); free(str); @@ -344,7 +344,7 @@ void nk_glfw3_shutdown(void) nk_free(&glfw.ctx); glDeleteTextures(1, &dev->font_tex); nk_buffer_free(&dev->cmds); - memset(&glfw, 0, sizeof(glfw)); + NK_MEMSET(&glfw, 0, sizeof(glfw)); } #endif