From 60752feb9c17ab5176560b525ea08a5da3f791c4 Mon Sep 17 00:00:00 2001 From: Alexander Bondarenko <486682+dpwiz@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:09:19 +0200 Subject: [PATCH] fix addr --- apps/ios/SimpleXChat/hs_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ios/SimpleXChat/hs_init.c b/apps/ios/SimpleXChat/hs_init.c index 4d4ff9afa2..04e99bef56 100644 --- a/apps/ios/SimpleXChat/hs_init.c +++ b/apps/ios/SimpleXChat/hs_init.c @@ -24,13 +24,13 @@ void haskell_init(const char *eventlog, const char *heap_profile) { // argv[argc++] = "-M8G"; // keep memory usage under 8G, collecting more aggressively when approaching it (and crashing sooner rather than taking down the whole system) if (eventlog) { static char ol[1024] = "-ol"; - (void)strncpy(ol[3], eventlog, sizeof(ol) - 3); + (void)strncpy(&ol[3], eventlog, sizeof(ol) - 3); argv[argc++] = "-olsimplex.eventlog"; // produce file relative to "current" directory argv[argc++] = "-l-agu"; // collect GC and user events } if (heap_profile) { static char po[1024] = "-po"; - (void)strncpy(po[3], heap_profile, sizeof(po) - 3); + (void)strncpy(&po[3], heap_profile, sizeof(po) - 3); argv[argc++] = po; // produce .hp relative to "current" directory argv[argc++] = "-hT"; // emit heap profile by closure type }