Removing strcpy from your code makes it a little less memory unsafe.
(Depends on what you replace it with obviously...)