]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
null terminate a string
authorAndrew Tridgell <tridge@samba.org>
Thu, 26 Apr 2007 21:29:26 +0000 (23:29 +0200)
committerAndrew Tridgell <tridge@samba.org>
Thu, 26 Apr 2007 21:29:26 +0000 (23:29 +0200)
(This used to be ctdb commit a7408802c7bff235bd917d06f98e00e309d2d5ca)

ctdb/common/ctdb_control.c

index 5ee6a1bf5a106d0f427941f226e42a8493e5028e..c68bbc2ae389ea78cc087017df22eedc74dadc41 100644 (file)
@@ -78,7 +78,7 @@ static int32_t ctdb_control_dispatch(struct ctdb_context *ctdb,
                ctdb_db = find_ctdb_db(ctdb, db_id);
                if (ctdb_db == NULL) return -1;
                outdata->dptr = discard_const(ctdb_db->db_path);
-               outdata->dsize = strlen(ctdb_db->db_path);
+               outdata->dsize = strlen(ctdb_db->db_path)+1;
                return 0;
        }