diff --git a/src/engine.c b/src/engine.c
index 52f5b8f9e4a972d24fd2d60c5b0b09ccec3012ba..038fc49baaed1ae445a9b3079d216768fc70cab4 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -5857,7 +5857,7 @@ void engine_struct_restore(struct engine *e, FILE *stream) {
   e->snapshotUnits = us;
 
 #ifdef WITH_MPI
-  struct repartition *reparttype = (strunct repartition *)malloc(sizeof(struct repartition));
+  struct repartition *reparttype = (struct repartition *)malloc(sizeof(struct repartition));
   partition_struct_restore(reparttype, stream);
   e->reparttype = reparttype;
 #endif