If any sheriff, deputy sheriff, jailer or other officer wilfully suffer a prisoner in his custody under conviction or under any criminal charge not capital to escape, he shall suffer the like punishment and penalties as the prisoner suffered to escape was sentenced to, or would be liable to suffer, upon conviction of the crime or offense wherewith he stood charged.
S.C. Code § 23-17-80