Update attach.c

Typo
Merge pull request #35 from domoritz/patch-1

Update attach.c to fix a typo.