* path.cc (readlink): Check if buffer length is positive. Truncate output to
buffer length. Don't terminate buffer with '\0'.
This commit is contained in:
@@ -42,7 +42,7 @@ tcsendbreak (int fd, int duration)
|
||||
}
|
||||
|
||||
out:
|
||||
syscall_printf ("%d = tcsendbreak (%d, %d )", res, fd, duration);
|
||||
syscall_printf ("%d = tcsendbreak (%d, %d)", res, fd, duration);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user