79872ea6 reduced the command line buffer breaking various platforms.
Signed-off-by: Steven Barth <steven@midlink.org>
char* get_cmdline_val(const char* name, char* out, int len)
{
- char pattern[COMMAND_LINE_SIZE + 1];
- char line[COMMAND_LINE_SIZE + 1];
+ char pattern[CMDLINE_SIZE + 1];
+ char line[CMDLINE_SIZE + 1];
char *res = NULL, *tty;
int r, fd;
regex_t pat_cmdline;
if (fd < 0)
return NULL;
- r = read(fd, line, COMMAND_LINE_SIZE);
+ r = read(fd, line, CMDLINE_SIZE);
if ( r <= 0 ) {
close(fd);
return NULL;
#include <libubox/blob.h>
#include <libubox/blobmsg.h>
+#define CMDLINE_SIZE 2048
+
struct blobmsg_list_node {
struct avl_node avl;
struct blob_attr *data;