Fix: strndup does not exist on Solaris 10
[lttng-tools.git] / src / common / trace-chunk.c
index 40e612800a5c8e6dd31442593d27e94eea81fbbc..fe244ac36594ebbcec7c81f8b9b331d9540f7a59 100644 (file)
@@ -656,7 +656,7 @@ int add_top_level_directory_unique(struct lttng_trace_chunk *chunk,
        }
 
        if (!found) {
-               char *copy = strndup(new_path, new_path_top_level_len);
+               char *copy = lttng_strndup(new_path, new_path_top_level_len);
 
                DBG("Adding new top-level directory \"%s\" to trace chunk \"%s\"",
                                new_path, chunk->name ? : "(unnamed)");
This page took 0.027935 seconds and 5 git commands to generate.