bug in c

(cherry picked from commit fce6916629077a5c3d05aa09979cdd5d9f4b75c5)
Signed-off-by: Simon Weil <simon.weil@naturalint.com>

Conflicts:
	c