Skip to content

Commit 73e4e5f

Browse files
committed
tools/pdc2png: Use the right size of size
Signed-off-by: Stasia Michalska <hel@lcp.world>
1 parent ccdf745 commit 73e4e5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pdc2png/src/pdc2png.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ static void prv_convert_pdc(const char *filename) {
176176
}
177177

178178
// Read size of data
179-
size_t size;
179+
uint32_t size = 0;
180180
if (fread(&size, sizeof(size), 1, f) != 1) {
181181
printf("Failed to read PDC size: %s\n", filename);
182182
fclose(f);

0 commit comments

Comments
 (0)