ref: 9c0588335692286e31e946a3665ec7574afe0f44
parent: 57e208bcd7abb1f20e716879a168740c8aee2f77
author: kvik <kvik@a-b.xyz>
date: Fri Dec 13 14:02:49 EST 2019
Use error-checked strdup.
--- a/unionfs.c
+++ b/unionfs.c
@@ -535,8 +535,8 @@
free(d);
return 1;
}
- path = p = strdup(path);
- for(; p != nil ;){
+ path = p = estrdup(path);
+ for(; p != nil;){
if(p[0] == '/')
p++;
if(p = strchr(p, '/'))