bool has_postgres_support(void)
{
char *getenv_ptr;
- if (bool((getenv_ptr= getenv("POSTGES_IS_RUNNING_AND_SETUP"))))
+ if (bool((getenv_ptr= getenv("POSTGRES_IS_RUNNING_AND_SETUP"))))
{
(void)(getenv_ptr);
+#if defined(HAVE_LIBPQ) && HAVE_LIBPQ
if (HAVE_LIBPQ)
{
return true;
}
+#endif
}
return false;
if (access(arg_buffer.str().c_str(), X_OK) == 0)
{
- strncpy(memcached_binary_path, arg_buffer.str().c_str(), FILENAME_MAX);
+ strncpy(memcached_binary_path, arg_buffer.str().c_str(), FILENAME_MAX-1);
}
}
#endif