From e7962fa5ea4e0399bea7d16d08beb29e76c48ff0 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sat, 8 Apr 2023 12:18:53 +0100 Subject: Fix some miscellaneous stupid bugs and jank Note: fixes.c was changed this year, so correct the copyright year too. --- src/demorec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/demorec.c') diff --git a/src/demorec.c b/src/demorec.c index 307e751..9c836b4 100644 --- a/src/demorec.c +++ b/src/demorec.c @@ -114,7 +114,7 @@ static void hook_record_cb(const struct con_cmdargs *args) { for (const char *p = arg; p - arg < argdirlen; ++p, ++q) { *q = (uchar)*p; } - q[argdirlen] = OS_LIT('\0'); + *q = OS_LIT('\0'); // this is pretty ugly. the error cases would be way tidier if // we could use open(O_DIRECTORY), but that's not a thing on // windows, of course. -- cgit v1.2.3