Closed lxutopia closed 1 day ago
https://github.com/Sydarkivera/RecursiveTar/blob/da10a2ce7ab84e34a04d2e888bcf3ebc5d0304b7/viewtar.c#L421-L426 The following code should be safe and standard:
char *path = (char *) malloc(strlen(argv[2]) + 1); strcpy(path, argv[2]); ... free(path);
https://github.com/Sydarkivera/RecursiveTar/blob/da10a2ce7ab84e34a04d2e888bcf3ebc5d0304b7/viewtar.c#L421-L426 The following code should be safe and standard: