If a prisoner is confined for safekeeping, the prisoner's earnings, after paying for board, shall be paid over to the prisoner on discharge.
Code 1858, § 5414; Shan., § 7394; Code 1932, § 12001; T.C.A. (orig. ed.), § 41-1403.