copy with a null volume name in a trans2 QFSINFO call
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2004 02:41:20 +0000 (02:41 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Mar 2004 02:41:20 +0000 (02:41 +0000)
(This used to be commit 96c54df6facc8d1d5ef559ebc3e7e0953d89b2ab)

source4/smb_server/trans2.c

index 6a15aad137cac9d34d851cf62ddad8b1d244c69f..bc51191aa6b336bb8371d975dac3abc0ab3eb433 100644 (file)
@@ -187,7 +187,7 @@ static void trans2_append_data_string(struct request_context *req,
        const int max_bytes_per_char = 3;
 
        offset = trans->out.data.length;
-       trans2_grow_data(req, trans, offset + (2+strlen(str->s))*max_bytes_per_char);
+       trans2_grow_data(req, trans, offset + (2+strlen_m(str->s))*max_bytes_per_char);
        ret = trans2_push_data_string(req, trans, len_offset, offset, str, -1, flags);
        trans2_grow_data(req, trans, offset + ret);
 }