Rev 197: null terminate a string in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Thu Apr 26 21:29:27 GMT 2007
------------------------------------------------------------
revno: 197
revision-id: tridge at samba.org-20070426212926-5pgrco1jswx21t63
parent: tridge at samba.org-20070426211035-xbmybl4v62y2ssa9
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Thu 2007-04-26 23:29:26 +0200
message:
null terminate a string
modified:
common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1
=== modified file 'common/ctdb_control.c'
--- a/common/ctdb_control.c 2007-04-26 21:10:35 +0000
+++ b/common/ctdb_control.c 2007-04-26 21:29:26 +0000
@@ -78,7 +78,7 @@
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;
}
More information about the samba-cvs
mailing list