summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-09 16:27:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:55 -0500
commitf850ba5787b893fcf0e25cfa52affb93eb0c5afc (patch)
treee732636cefa7c0092b45ef36888c743488598469 /source3/smbd
parent221d06d6f3e9789bf3efc6fa52dd94e68b1804cf (diff)
downloadsamba-f850ba5787b893fcf0e25cfa52affb93eb0c5afc.tar.gz
samba-f850ba5787b893fcf0e25cfa52affb93eb0c5afc.tar.bz2
samba-f850ba5787b893fcf0e25cfa52affb93eb0c5afc.zip
r23773: One pstring a day...
(This used to be commit 0c3016d32b5277b901788b13aa7d3f4b647728f2)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/fileio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c
index 1227d12b08..946d57da7e 100644
--- a/source3/smbd/fileio.c
+++ b/source3/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;