fixed invalid malloc of sig message (forgot 1 byte for trailing 0)