All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] [PATCH] Minor issues with sdp-xml
@ 2007-02-06  5:13 Denis KENZIOR
  2007-02-06 17:16 ` Stefan Seyfried
  2007-02-12 19:49 ` Marcel Holtmann
  0 siblings, 2 replies; 6+ messages in thread
From: Denis KENZIOR @ 2007-02-06  5:13 UTC (permalink / raw)
  To: Bluez-devel

[-- Attachment #1: Type: text/plain, Size: 69 bytes --]

Marcel,

This patch fixes up a couple of minor bugs I found.

-Denis

[-- Attachment #2: sdp-xml.patch --]
[-- Type: text/x-diff, Size: 929 bytes --]

Index: sdp-xml.c
===================================================================
RCS file: /cvsroot/bluez/utils/common/sdp-xml.c,v
retrieving revision 1.7
diff -u -r1.7 sdp-xml.c
--- sdp-xml.c	20 Jan 2007 21:28:02 -0000	1.7
+++ sdp-xml.c	6 Feb 2007 05:12:31 -0000
@@ -265,7 +265,7 @@
 		if (hex) {
 			appender(data, "encoding=\"hex\" ");
 			strBuf = (char *) malloc(sizeof(char)
-						 * (value->unitSize * 2 + 1));
+						 * ((value->unitSize-1) * 2 + 1));
 
 			/* Unit Size seems to include the size for dtd
 			   It is thus off by 1
@@ -276,7 +276,7 @@
 					"%02x",
 					(unsigned char) value->val.str[i]);
 
-			strBuf[value->unitSize * 2] = '\0';
+			strBuf[(value->unitSize-1) * 2] = '\0';
 		}
 		else {
 			int j;
@@ -603,7 +603,7 @@
 			buf[0] = data[i];
 			buf[1] = data[i + 1];
 
-			val.data[i] = strtoul(buf, 0, 16);
+			val.data[i >> 1] = strtoul(buf, 0, 16);
 		}
 
 		ret = sdp_data_alloc(dtd, &val);

[-- Attachment #3: Type: text/plain, Size: 374 bytes --]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-14 15:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-06  5:13 [Bluez-devel] [PATCH] Minor issues with sdp-xml Denis KENZIOR
2007-02-06 17:16 ` Stefan Seyfried
2007-02-12 19:49 ` Marcel Holtmann
2007-02-13 11:33   ` [Bluez-devel] Linux Distribution for Bluez enigma enu
2007-02-13 13:03     ` Marcel Holtmann
2007-02-14 15:13       ` enigma enu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.