|
From: Peter H. <Pet...@ne...> - 2007-05-13 21:00:04
|
Martin=2C
The original code that I submitted for this had =254u - which I think would=
be
better than =254d although in practice it would not matter=2E
The definition of =22z=22 in =254zu is=3A =22A following integer conversion=
corresponds to a size=5Ft or ssize=5Ft argument=22=2E AFAIK this is technic=
ally
correct for the result of pointer arithmetic=2E
My guess is that you have a compiler that does not support the z option=2E=
I don=27t know where we go from here=3B my other assumption is that someone=
with
a 64 bit system needed the z to correctly print the result of pointer
arithmetic =28or to get rid of some warning=29=2E
My suggestion is to leave the =254zu=2E If you want to suggest some conditi=
onal
compilation I would support that=2E
Peter
-----Original Message-----
From=3A sipp-users-bounces=40lists=2Esourceforge=2Enet
=5Bmailto=3Asipp-users-bounces=40lists=2Esourceforge=2Enet=5D On Behalf Of=
M=2EH=2EVanLeeuwen
Sent=3A 09 May 2007 06=3A03
To=3A sipp-users=40lists=2Esourceforge=2Enet
Subject=3A =5BSipp-users=5D Content Length problem=2C possible fix=2E
Hi=2C
=22Content Length=3A zu=22 seems to be generated from =254zu=2C changed to=
=254d in the
following patch to fix the problem=2E
Martin
--- call=2Ecpp=2Eorig 2007-05-02 17=3A28=3A48=2E336760000 -0500
+++ call=2Ecpp 2007-05-08 23=3A53=3A58=2E001734000 -0500
=40=40 -2382=2C7 +2383=2C7 =40=40
key =3D strstr=28length=5Fmarker=2C=22=5Cr=5Cn=5Cr=5Cn=22=29=3B
if =28key =26=26 dest - key =3E 4 =26=26 dest - key =3C 10004=29=20=
=7B
char tmp =3D length=5Fmarker=5B4=5D=3B
- sprintf=28length=5Fmarker=2C =22=254zu=22=2C dest - key - 4 + len=
=5Foffset=29=3B
+ sprintf=28length=5Fmarker=2C =22=254d=22=2C dest - key - 4 + len=
=5Foffset=29=3B
length=5Fmarker=5B4=5D =3D tmp=3B
=7D else =7B
// Other cases=3A Content-Length is 0
-------------------------------------------------------------------------=
This SF=2Enet email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML=2E No limits=2E Just data=2E Click to get it now=2E
http=3A//sourceforge=2Enet/powerbar/db2/
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Sipp-users mailing list
Sipp-users=40lists=2Esourceforge=2Enet
https=3A//lists=2Esourceforge=2Enet/lists/listinfo/sipp-users
---------------------------------------------------------------------------=
------------------
This e-mail may contain confidential and/or privileged information=2E
If you are not the intended recipient =28or have received this e-mail in er=
ror=29 please
notify the sender immediately and delete this e-mail=2E Any unauthorized co=
pying=2C
disclosure or distribution of the contents in this e-mail is strictly forbi=
dden=2E
---------------------------------------------------------------------------=
------------------
Newport Networks Limited is registered in England=2E Registration number 40=
67591=2E
Registered office=3A 6 St=2E Andrew Street=2C London EC4A 3LX
---------------------------------------------------------------------------=
------------------
|