From: root Date: Thu, 9 Jun 2016 19:54:33 +0000 (-0400) Subject: Whoops. X-Git-Tag: v0.0.8~6 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=1da09f3d872b5c216bf696649f1a8fe331f45363;p=corbenik%2Fcorbenik.git Whoops. --- 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;