Oops. - vtv-tools - virtual terminal video tools DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 9429123064f1a613b867becac207e6065a5fa82c DIR parent 1cf2ea6ebef699e39aabd57ef6aea83cda68b8e0 HTML Author: Troels Henriksen <athas@sigkill.dk> Date: Mon, 14 Aug 2023 13:32:25 +0200 Oops. Diffstat: M src/vtv-from-ff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/src/vtv-from-ff.c b/src/vtv-from-ff.c @@ -29,7 +29,7 @@ int read_be_uint16(FILE *f, uint16_t *x) { *x = 0; if (fread(&b, 1, 1, f) != 1) { return 1; } - *x == (uint32_t)b << 8; + *x += (uint32_t)b << 8; if (fread(&b, 1, 1, f) != 1) { return 1; } *x += b;