sensord: change sprintf to snprintf