diff --git a/libs/libc/misc/lib_execinfo.c b/libs/libc/misc/lib_execinfo.c index bee7f56075..f963aa760c 100644 --- a/libs/libc/misc/lib_execinfo.c +++ b/libs/libc/misc/lib_execinfo.c @@ -67,7 +67,7 @@ FAR char **backtrace_symbols(FAR void *const *buffer, int size) syms = backtrace_malloc(buffer, size); if (syms != NULL) { - buf = syms[size]; + buf = (FAR char *)&syms[size]; for (i = 0; i < size; i++) { syms[i] = buf;