Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / compat / string.hpp
index 4a96cb1456ffd2a928d18439007cfc3959b2b5e5..526f2b2ced3b200ecfa696083baa9fadc72408eb 100644 (file)
@@ -61,7 +61,7 @@ char *lttng_strndup(const char *s, size_t n)
                navail = n + 1;
        }
 
-       ret = (char *) malloc(navail);
+       ret = malloc<char>(navail);
        if (!ret) {
                goto end;
        }
This page took 0.023716 seconds and 4 git commands to generate.