Created
February 12, 2020 23:06
-
-
Save eklitzke/e63075acc428bcd2e05c18c787bef67e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size_t dirlen = strlen (dir); | |
char *name = malloc (dirlen + sizeof id_name); | |
if (unlikely (name == NULL)) | |
break; | |
memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment