mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Minor comment rewording
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9261 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1642,7 +1642,7 @@ static int utf8_input_filter(char *buffer, // result buffer we fill with utf8
|
|||||||
if (q + lq > buffer + buflen) { // encoding would walk off end of buffer[]?
|
if (q + lq > buffer + buflen) { // encoding would walk off end of buffer[]?
|
||||||
memmove(line, p, endline - p); // re-jigger line[] buffer for next call
|
memmove(line, p, endline - p); // re-jigger line[] buffer for next call
|
||||||
endline -= (p - line); // adjust end of line[] buffer for next call
|
endline -= (p - line); // adjust end of line[] buffer for next call
|
||||||
return q - buffer; // return what's decoded so far, caller will enlarge buffer
|
return q - buffer; // return what's decoded so far, caller will consume buffer
|
||||||
}
|
}
|
||||||
memcpy(q, multibyte, lq);
|
memcpy(q, multibyte, lq);
|
||||||
q += lq;
|
q += lq;
|
||||||
|
|||||||
Reference in New Issue
Block a user