it was difficult since he had only a little room to work in , but after drawing blood on one of his fingers by cutting it on a sharp metal splinter on the inside of the tube and cursing a few colorful words , he managed to snap the lock .