mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] uml: fix min usage
type-safe min() in arch/um/drivers/mconsole_kern.c Signed-off-by: Al Viro <[email protected]> Signed-off-by: Jeff Dike <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
43cecb3079
commit
e11c0cdf4c
1 changed files with 1 additions and 1 deletions
|
|
@ -616,7 +616,7 @@ static void console_write(struct console *console, const char *string,
|
|||
return;
|
||||
|
||||
while(1){
|
||||
n = min(len, ARRAY_SIZE(console_buf) - console_index);
|
||||
n = min((size_t)len, ARRAY_SIZE(console_buf) - console_index);
|
||||
strncpy(&console_buf[console_index], string, n);
|
||||
console_index += n;
|
||||
string += n;
|
||||
|
|
|
|||
Loading…
Reference in a new issue