~strahinja/slweb

6ccadf8ae9ea7e21c492e0d3a6468f9aa896fd71 — Страхиња Радић 3 months ago cb512a8
slweb.c(do_line): Correct the amount that value_size is checked against and assigned

Signed-off-by: Страхиња Радић <contact@strahinja.org>
1 files changed, 2 insertions(+), 2 deletions(-)

M slweb.c
M slweb.c => slweb.c +2 -2
@@ 3673,9 3673,9 @@ do_line:
				value_len = strlen((char*)pmacros->value);

				if (pmacros->value_size
					< value_len + token_len + 1)
					< value_len + token_len + 4)
				{
					pmacros->value_size += token_len;
					pmacros->value_size += token_len + 3;
					REALLOC(pmacros->value, u8,
						pmacros->value_size);
				}