]> git.saurik.com Git - apple/libc.git/blobdiff - gen/backtrace.c
Libc-1081.1.3.tar.gz
[apple/libc.git] / gen / backtrace.c
index 4cac3c4fa27a66d46b85ed895df06e24874c1e9b..925dcb47bc0dfe301adb7e2f96ddb059a3e44a57 100644 (file)
@@ -110,9 +110,9 @@ char** backtrace_symbols(void* const* buffer, int size) {
                if (info[i].dli_sname) {
                        total_bytes += strlen(info[i].dli_sname);
                } else if(info[i].dli_fname) {
-                       const char *tmp = strrchr(info->dli_fname, '/');
+                       const char *tmp = strrchr(info[i].dli_fname, '/');
                        if(tmp == NULL)
-                               total_bytes += strlen(info->dli_fname);
+                               total_bytes += strlen(info[i].dli_fname);
                        else
                                total_bytes += strlen(tmp + 1);
                } else {