r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[obnox/samba/samba-obnox.git] / source / utils / net_cache.c
index a95591645876e70940a091ce182ef32e9e067562..6bbab1c8177671eb73ba90679e6819f6ae6a5692 100644 (file)
@@ -101,7 +101,7 @@ static time_t parse_timeout(const char* timeout_str)
        /* number detection */
        len = (sign) ? strlen(&timeout_str[number_begin]) : len;
        number_end = (unit) ? len - 1 : len;
-       number = strndup(&timeout_str[number_begin], number_end);
+       number = SMB_STRNDUP(&timeout_str[number_begin], number_end);
        
        /* calculate actual timeout value */
        timeout = (time_t)atoi(number);