mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Fixed 64-bit compiler warning
SVN revision: 2057
This commit is contained in:
parent
93349c41f2
commit
8c04e598c1
@ -271,7 +271,7 @@ void convert_crlf(char *buffer, int bufsize)
|
|||||||
p = buffer;
|
p = buffer;
|
||||||
while ((p = strstr(p, "\\n")) != NULL) {
|
while ((p = strstr(p, "\\n")) != NULL) {
|
||||||
|
|
||||||
if ((int) p - (int) buffer < bufsize - 2) {
|
if (p - buffer < bufsize - 2) {
|
||||||
*(p++) = '\r';
|
*(p++) = '\r';
|
||||||
*(p++) = '\n';
|
*(p++) = '\n';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user