diff --git a/src/game/opts.c b/src/game/opts.c index 1a33b25..7c66a78 100644 --- a/src/game/opts.c +++ b/src/game/opts.c @@ -59,7 +59,7 @@ static inline int str_put(char* restrict* restrict dest, size_t dest_len, char c // copy the missing data to the end of the destination memcpy(*dest + dest_len, src + dest_len, src_len - dest_len); - *dest[src_len] = '\0'; // null-terminate the destination + (*dest)[src_len] = '\0'; // null-terminate the destination return 0; }