1 |
diff -urN hal-0.4.2/hald/linux/block_class_device.c hal-0.4.2-ti/hald/linux/block_class_device.c |
2 |
--- hal-0.4.2/hald/linux/block_class_device.c 2004-11-30 21:39:01.000000000 -0600 |
3 |
+++ hal-0.4.2-ti/hald/linux/block_class_device.c 2007-04-26 12:19:33.000000000 -0500 |
4 |
@@ -1897,7 +1897,7 @@ |
5 |
int i; |
6 |
char *p; |
7 |
char *delim = " \t\n"; |
8 |
- char buf[256]; |
9 |
+ char buf[8192]; |
10 |
char *bufp = buf; |
11 |
struct stat stat_buf; |
12 |
int major = 0; |
13 |
@@ -1983,7 +1983,7 @@ |
14 |
read_etc_mtab (dbus_bool_t force) |
15 |
{ |
16 |
int fd; |
17 |
- char buf[256]; |
18 |
+ char buf[8192]; |
19 |
FILE *f; |
20 |
struct stat stat_buf; |
21 |
|
22 |
@@ -2020,7 +2020,7 @@ |
23 |
} |
24 |
|
25 |
while (!feof (f)) { |
26 |
- if (fgets (buf, 256, f) == NULL) |
27 |
+ if (fgets (buf, 8192, f) == NULL) |
28 |
break; |
29 |
/*printf("got line: '%s'\n", buf); */ |
30 |
etc_mtab_process_line (buf); |