From: Volker Lendecke Date: Tue, 3 Sep 2019 14:12:35 +0000 (+0200) Subject: lib: Use file_id_str_buf() in file_id_string() X-Git-Tag: talloc-2.3.1~928 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b09c216f5aeea3c41722b938213572012290a543;p=thirdparty%2Fsamba.git lib: Use file_id_str_buf() in file_id_string() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/lib/file_id.c b/source3/lib/file_id.c index b2cf313b81f..49e5c50385f 100644 --- a/source3/lib/file_id.c +++ b/source3/lib/file_id.c @@ -55,10 +55,8 @@ char *file_id_str_buf(struct file_id fid, struct file_id_buf *dst) */ const char *file_id_string(TALLOC_CTX *mem_ctx, const struct file_id *id) { - char *result = talloc_asprintf(mem_ctx, "%llx:%llx:%llx", - (unsigned long long)id->devid, - (unsigned long long)id->inode, - (unsigned long long)id->extid); + struct file_id_buf buf; + char *result = talloc_strdup(mem_ctx, file_id_str_buf(*id, &buf)); SMB_ASSERT(result != NULL); return result; }