If it is a hair crack, go to homedepot to buy some kind of "cement caulking" (not caulking for bathtub, but looks quite similar to me

. Just ask employee in homedepot and they can show you.
It the crack is wide, well, I'll leave it to Timonthy to answer it.