Clearer. - vtv-tools - virtual terminal video tools DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit bdc58b615aed3f5ee2384630412f651689284235 DIR parent f676865ad65670bf543d55c361019531edd1c734 HTML Author: Troels Henriksen <athas@sigkill.dk> Date: Mon, 14 Aug 2023 13:39:16 +0200 Clearer. 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 += (uint16_t)b << 8; if (fread(&b, 1, 1, f) != 1) { return 1; } *x += b;