gcc complains that because the destination length is computed based on the source string, the trailing NULL won't be copied:
test->cursor_ns = (char *) bson_malloc0 (strlen (temp));
strncpy (test->cursor_ns, temp, strlen (temp));
gcc complains that because the destination length is computed based on the source string, the trailing NULL won't be copied:
test->cursor_ns = (char *) bson_malloc0 (strlen (temp));
strncpy (test->cursor_ns, temp, strlen (temp));