From 0c3016d32b5277b901788b13aa7d3f4b647728f2 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 9 Jul 2007 16:27:13 +0000 Subject: [PATCH] r23773: One pstring a day... --- source/smbd/fileio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/smbd/fileio.c b/source/smbd/fileio.c index 1227d12b08e..946d57da7e5 100644 --- a/source/smbd/fileio.c +++ b/source/smbd/fileio.c @@ -780,9 +780,11 @@ void set_filelen_write_cache(files_struct *fsp, SMB_OFF_T file_size) if(fsp->wcp) { /* The cache *must* have been flushed before we do this. */ if (fsp->wcp->data_size != 0) { - pstring msg; - slprintf(msg, sizeof(msg)-1, "set_filelen_write_cache: size change \ -on file %s with write cache size = %lu\n", fsp->fsp_name, (unsigned long)fsp->wcp->data_size ); + char *msg; + asprintf(&msg, "set_filelen_write_cache: size change " + "on file %s with write cache size = %lu\n", + fsp->fsp_name, + (unsigned long)fsp->wcp->data_size); smb_panic(msg); } fsp->wcp->file_size = file_size; -- 2.11.4.GIT