r3220: merging current 3.0 code to release branch
[tprouty/samba.git] / source / smbd / fileio.c
index c2fb6e345665e55728d1f0f51ea0d6f17b3e46fc..b9fe1ad1cfcb7220a07f627f759d57f5452f7bf4 100644 (file)
@@ -151,10 +151,10 @@ ssize_t write_file(files_struct *fsp, char *data, SMB_OFF_T pos, size_t n)
        int write_path = -1; 
 
        if (fsp->print_file) {
-               int snum;
+               fstring sharename;
                uint32 jobid;
 
-               if (!rap_to_pjobid(fsp->rap_print_jobid, &snum, &jobid)) {
+               if (!rap_to_pjobid(fsp->rap_print_jobid, sharename, &jobid)) {
                        DEBUG(3,("write_file: Unable to map RAP jobid %u to jobid.\n",
                                                (unsigned int)fsp->rap_print_jobid ));
                        errno = EBADF;