Mostly syntax. Removed a snprintf call, swapped strncat for strcat in appropriate instances. Fixes #2.