From c3406ca0315e3e96efab653859cb2d22778b859d Mon Sep 17 00:00:00 2001 From: Quinn Date: Sat, 19 Apr 2025 19:58:56 +0200 Subject: [PATCH] add some notes --- src/game/opts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/opts.c b/src/game/opts.c index 486f6d0..b7649e1 100644 --- a/src/game/opts.c +++ b/src/game/opts.c @@ -1,6 +1,5 @@ #include #include -#include #include "../error.h" #include "../util/compat.h" @@ -19,7 +18,8 @@ struct proc_buf_dat { }; /* processes the data within the buffer. - NOTE: when the function returns, eol might not be set, this is to ensure that we know for certain that an EOL indicator has been reached. */ + NOTE: when the function returns, eol might not be set, this is to ensure that we know for certain that an EOL indicator has been reached. + BUG: when working with a partial buffer, the returned pointers become invalid */ static void proc_buf(char const* restrict buf, struct proc_buf_dat* restrict dat) { // reset if EOL has been reached if (dat->eol) *dat = (struct proc_buf_dat){0};