a missing string conversion.
authorJean-François Micouleau <jfm@samba.org>
Wed, 18 Apr 2001 17:57:53 +0000 (17:57 +0000)
committerJean-François Micouleau <jfm@samba.org>
Wed, 18 Apr 2001 17:57:53 +0000 (17:57 +0000)
J.F.
(This used to be commit 9513eb87c2d113fe27bcea2add05226495c33cb8)

source3/smbd/pipes.c

index 366707cd5896cb5a410b3bada2bb70d10f60a5d2..7a3c1fe20e6e4649bcf34a0607f869cf75831adb 100644 (file)
@@ -52,7 +52,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
        int i;
 
        /* XXXX we need to handle passed times, sattr and flags */
-       pstrcpy(fname,smb_buf(inbuf));
+       srvstr_pull(inbuf, fname, smb_buf(inbuf), sizeof(fname), -1, STR_TERMINATE);
 
        /* If the name doesn't start \PIPE\ then this is directed */
        /* at a mailslot or something we really, really don't understand, */