Browse Source

A Universal Videohub 288 will send a much larger response than can

fit in a 8KB buffer, since parsing expects a complete response
from the router, increase the maximum buffer / response size
to handle 3,200+ line response.

Signed-off-by: Jean-Francois Panisset <panisset@gmail.com>
Jean-Francois Panisset 3 years ago
parent
commit
87db62ffeb
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      videohubctrl.c

+ 5
- 1
videohubctrl.c View File

420
 
420
 
421
 static int read_device_command_stream(struct videohub_data *d) {
421
 static int read_device_command_stream(struct videohub_data *d) {
422
 	int ret, ncommands = 0;
422
 	int ret, ncommands = 0;
423
-	char buf[8192 + 1];
423
+        /* On a Universal Videohub 288 you can get 3231 lines of output,
424
+         * let's assume worst case of 80 characters per line, so a 300KB
425
+         * message.
426
+         */
427
+        char buf[300 * 1024 + 1];
424
 	if (test_data)
428
 	if (test_data)
425
 		return 0;
429
 		return 0;
426
 	memset(buf, 0, sizeof(buf));
430
 	memset(buf, 0, sizeof(buf));

Loading…
Cancel
Save