Update sharedmem.c

Set offset to start of shared memory