]> Chaos Git - corbenik/corbenik.git/commitdiff
Whoops. Typo of i vs len caused boot failure.
authorchaoskagami <chaos.kagami@gmail.com>
Thu, 9 Jun 2016 19:54:33 +0000 (15:54 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Thu, 9 Jun 2016 19:56:11 +0000 (15:56 -0400)
source/interp.c

index d69e622999a5a85d28f684a3a7b973a1207f1896..82e608f04ab8354c90ad59a672aa3141568d1a46 100644 (file)
@@ -513,11 +513,11 @@ execb(char *filename, int build_cache)
                 uint32_t len = strlen(cache_path) - 1;
                 uint64_t prog = *(uint64_t *)title_buf;
                 while (prog) {
-                    title_buf[i--] = hexDigits[(uint32_t)(prog & 0xF)];
+                    title_buf[len--] = hexDigits[(uint32_t)(prog & 0xF)];
                     prog >>= 4;
                 }
 
-                fprintf(stderr, "  cache: %s\n", &cache_path[len]);
+                fprintf(stderr, "  cache: %s\n", cache_path);
 
                 char reset = 0xFF;