summaryrefslogtreecommitdiffhomepage
path: root/src/demorec.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2023-04-08 12:18:53 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2023-04-08 12:21:30 +0100
commite7962fa5ea4e0399bea7d16d08beb29e76c48ff0 (patch)
tree57babf41da45b28b02de24826553e88814431477 /src/demorec.c
parent3e4c26eeb701d96aa73bd482d48140f229cd9079 (diff)
Fix some miscellaneous stupid bugs and jank
Note: fixes.c was changed this year, so correct the copyright year too.
Diffstat (limited to 'src/demorec.c')
-rw-r--r--src/demorec.c2
1 files changed, 1 insertions, 1 deletions
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.