summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorRobert Milasan <rmilasan@suse.com>2014-04-24 11:23:33 +0200
committerKay Sievers <kay@vrfy.org>2014-04-24 11:26:26 +0200
commit209b031e4fb7b50fc1812fc7c6ea59ca2f5d0c78 (patch)
tree850cf61962debda01654d197b3313f83509aea5d /src/udev
parent1d49b5aea98ad0ad3ccafc3f83943811219729e0 (diff)
udev: increase the size of RESULT buffer
Under some conditions, in udev_rules_apply_to_event the fact that result is 1024 bytes, creates problems if the output of the running command/app is bigger then 1024 bytes.
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-rules.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
index 17f47f261..85f78bcde 100644
--- a/src/udev/udev-rules.c
+++ b/src/udev/udev-rules.c
@@ -2027,7 +2027,7 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event
case TK_M_PROGRAM: {
char program[UTIL_PATH_SIZE];
char **envp;
- char result[UTIL_PATH_SIZE];
+ char result[UTIL_LINE_SIZE];
free(event->program_result);
event->program_result = NULL;