[porthole] fix invalid pointer dereference

This commit is contained in:
Geoffrey McRae 2019-11-12 16:51:04 +11:00
parent 7aee4eed11
commit ce5c36705e

View file

@ -28,4 +28,4 @@ typedef struct
} }
PortholeSegment; PortholeSegment;
#define PH_SEGMENTS(map) ((PortholeSegment *)((&map)+1)) #define PH_SEGMENTS(map) ((PortholeSegment *)((map)+1))