FW: Re: Munge /r and /n in HTTP_HttpSendRequestA
Argh, forget my previous message. I must have been utterly distracted. Rolf Kalbermatter -----Original Message----- From: Rolf Kalbermatter [mailto:rolf.kalbermatter(a)citeng.com] Sent: Mon, March 15, 2004 1:04 PM To: 'wine-devel(a)winehq.com' Cc: 'bon(a)elektron.ikp.physik.tu-darmstadt.de' Subject: Re: Munge /r and /n in HTTP_HttpSendRequestA Uwe Bonnes wrote:
The test for nLen is a good idea. But with nLen = strlen(lpwhr->lpszPath); lpwhr->lpszPath[nLen] should give the terminating NULL to my understanding...
Or am I off by one?
According to my ANSI C book strlen() returns the number of characters in a string NOT including the zero termination character. So I think in that case you would be indeed off by one. Rolf Kalbermatter
"Rolf" == Rolf Kalbermatter <rolf.kalbermatter(a)citeng.com> writes:
Rolf> Argh, forget my previous message. I must have been utterly Rolf> distracted. Rolf Kalbermatter And my postings were full of typos... Argh -- Uwe Bonnes bon(a)elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
participants (2)
-
Rolf Kalbermatter -
Uwe Bonnes