Fix: missing '\0' when storing variable

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>