Author: vlendec
Date: 2007-07-09 16:27:13 +0000 (Mon, 09 Jul 2007)
New Revision: 23773

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23773

Log:
One pstring a day...
Modified:
   branches/SAMBA_3_0/source/smbd/fileio.c
   branches/SAMBA_3_0_26/source/smbd/fileio.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/fileio.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/fileio.c     2007-07-09 16:03:00 UTC (rev 
23772)
+++ branches/SAMBA_3_0/source/smbd/fileio.c     2007-07-09 16:27:13 UTC (rev 
23773)
@@ -780,9 +780,11 @@
        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;

Modified: branches/SAMBA_3_0_26/source/smbd/fileio.c
===================================================================
--- branches/SAMBA_3_0_26/source/smbd/fileio.c  2007-07-09 16:03:00 UTC (rev 
23772)
+++ branches/SAMBA_3_0_26/source/smbd/fileio.c  2007-07-09 16:27:13 UTC (rev 
23773)
@@ -780,9 +780,11 @@
        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;

Reply via email to