summaryrefslogtreecommitdiffstats
path: root/source3/smbd/message.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-21 01:01:15 +0000
committerJeremy Allison <jra@samba.org>2001-06-21 01:01:15 +0000
commitfda0f83d751a1ea6c731fd6a82484a724a1c6e32 (patch)
tree9238fa62898b269583cbf5f6c0774cbd1ef6702b /source3/smbd/message.c
parent3f1254bee1b3cc8cce1e17be6f0250090f579417 (diff)
downloadsamba-fda0f83d751a1ea6c731fd6a82484a724a1c6e32.tar.gz
samba-fda0f83d751a1ea6c731fd6a82484a724a1c6e32.tar.xz
samba-fda0f83d751a1ea6c731fd6a82484a724a1c6e32.zip
Following info from TAKAHASHI Motonobu <monyo@samba.gr.jp>,
Samba Users Group Japan, ensure that we don't use dos_to_unix(xx,True), but always use dos_to_unix(xx,False) to prevent overwriting. Jeremy. (This used to be commit 244aec8ea623fec828add3ab09c5003bf32bd5c7)
Diffstat (limited to 'source3/smbd/message.c')
-rw-r--r--source3/smbd/message.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/message.c b/source3/smbd/message.c
index 98eb336c0a1..a023650c74a 100644
--- a/source3/smbd/message.c
+++ b/source3/smbd/message.c
@@ -61,13 +61,12 @@ static void msg_deliver(void)
}
/*
- * Incoming message is in DOS codepage format. Convert to UNIX in
- * place.
+ * Incoming message is in DOS codepage format. Convert to UNIX.
*/
if(msgpos > 0) {
msgbuf[msgpos] = '\0'; /* Ensure null terminated. */
- dos_to_unix(msgbuf,True);
+ pstrcpy(msgbuf,dos_to_unix(msgbuf,False));
}
for (i=0;i<msgpos;) {