From 43262ccb0e6b30e6981f592266f5950774fdaa0d Mon Sep 17 00:00:00 2001 From: Lassi Kortela Date: Tue, 7 Apr 2020 12:37:10 +0300 Subject: [PATCH] Fix pointer arithmetic bug --- c/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/main.c b/c/main.c index c848fd4..820391f 100644 --- a/c/main.c +++ b/c/main.c @@ -231,7 +231,7 @@ int main(int argc, char **argv) { fl_gc_handle(&os_command_line); os_command_line = argv_list(argc, cargv); - command_line_offset = (command_line - cargv) / sizeof(*cargv); + command_line_offset = command_line - cargv; FL_TRY_EXTERN { if (versionflag) {