Update tinycap.c

see issue #24