error = dpif_port_query_by_number(dpif, ODPP_LOCAL, &port);
if (!error) {
- strlcpy(name, port.devname, name_size);
+ ovs_strlcpy(name, port.devname, name_size);
}
return error;
}
}
void
-strlcpy(char *dst, const char *src, size_t size)
+ovs_strlcpy(char *dst, const char *src, size_t size)
{
if (size > 0) {
size_t n = strlen(src);
char *xvasprintf(const char *format, va_list) PRINTF_FORMAT(1, 0) MALLOC_LIKE;
void *x2nrealloc(void *p, size_t *n, size_t s);
-#ifndef HAVE_STRLCPY
-void strlcpy(char *dst, const char *src, size_t size);
-#endif
+void ovs_strlcpy(char *dst, const char *src, size_t size);
void ovs_fatal(int err_no, const char *format, ...)
PRINTF_FORMAT(2, 3) NO_RETURN;
out[n_copy] = '\0';
p += n + 2;
} else {
- strlcpy(out, def, out_size);
+ ovs_strlcpy(out, def, out_size);
}
return p;
}
AC_REQUIRE([OVS_CHECK_RUNDIR])
AC_REQUIRE([OVS_CHECK_LOGDIR])
AC_REQUIRE([OVS_CHECK_MALLOC_HOOKS])
- AC_REQUIRE([OVS_CHECK_VALGRIND])
- AC_CHECK_FUNCS([strlcpy])])
+ AC_REQUIRE([OVS_CHECK_VALGRIND])])