1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

r23773: One pstring a day...

(This used to be commit 0c3016d32b)
This commit is contained in:
Volker Lendecke 2007-07-09 16:27:13 +00:00 committed by Gerald (Jerry) Carter
parent 221d06d6f3
commit f850ba5787

View File

@ -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;