From 1da09f3d872b5c216bf696649f1a8fe331f45363 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 9 Jun 2016 15:54:33 -0400 Subject: [PATCH] Whoops. --- source/interp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/interp.c b/source/interp.c index d69e622..82e608f 100644 --- a/source/interp.c +++ b/source/interp.c @@ -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; -- 2.39.5