aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-get-edid-using-vbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor-get-edid-using-vbe.c')
-rw-r--r--monitor-get-edid-using-vbe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor-get-edid-using-vbe.c b/monitor-get-edid-using-vbe.c
index 3f8ab1c..c6235fd 100644
--- a/monitor-get-edid-using-vbe.c
+++ b/monitor-get-edid-using-vbe.c
@@ -74,7 +74,8 @@ int main(int argc, char **argv)
}
if (size >= 0) {
- write(1, edid, size);
+ if (write(STDOUT_FILENO, edid, size)) {
+ }
return 0;
}