imjournal: avoid void* arithmetic

this worked, but could lead to unpredictable results on some platforms
(at least in theory)