diff options
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r-- | pugl/pugl_osx.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index cdaa131..0546eec 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -439,7 +439,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type) { 0, 0, 0, 0, 0, 0, 0, 0 }, false }; - strncpy((char*)ev.utf8, str, 8); + strncpy(ev.string, str, 8); puglDispatchEvent(puglview, (const PuglEvent*)&ev); } @@ -464,7 +464,7 @@ handleCrossing(PuglOpenGLView* view, NSEvent* event, const PuglEventType type) { 0, 0, 0, 0, 0, 0, 0, 0 }, false, }; - strncpy((char*)ev.utf8, str, 8); + strncpy(ev.string, str, 8); puglDispatchEvent(puglview, (const PuglEvent*)&ev); } |