hal/hald/linux/volume_id volume_id.c,1.47,1.48

David Zeuthen david at freedesktop.org
Thu Dec 16 08:46:10 PST 2004


Update of /cvs/hal/hal/hald/linux/volume_id
In directory gabe:/tmp/cvs-serv5471/hald/linux/volume_id

Modified Files:
	volume_id.c 
Log Message:
2004-12-16  David Zeuthen  <davidz at redhat.com>

	* hald/linux/volume_id/volume_id.c (sesame_parse): Support really long
	lines
	(probe_crypto_sesame): Read 1024 bytes instead of only 0x100



Index: volume_id.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux/volume_id/volume_id.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- volume_id.c	16 Dec 2004 16:13:08 -0000	1.47
+++ volume_id.c	16 Dec 2004 16:46:08 -0000	1.48
@@ -2047,12 +2047,12 @@
 		unsigned int i;
 		char *lstart;
 		char *lend;
-		char line[256];
+		char line[1024];
 		size_t len;
 		char *valbegin;
 		char *ival;
 		char key[256];
-		char value[256];
+		char value[1024];
 
 		lstart = (char *) buf;
 		buf = sesame_skip_to_next_nonempty_line (buf);
@@ -2167,7 +2167,7 @@
 
 	found = 0;
 
-	buf = get_buffer(id, off, 0x100);
+	buf = get_buffer(id, off, 0x400);
 	if (buf == NULL)
 		goto out;
 




More information about the hal-commit mailing list