mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed corrupted config file under Ubuntu
SVN revision: 2394
This commit is contained in:
parent
120b38961b
commit
d47c36a57b
@ -12167,7 +12167,7 @@ void adjust_crlf(char *buffer, int bufsize)
|
||||
bufsize = 0; // avoid compiler warning about unused bufsize
|
||||
p = buffer;
|
||||
while ((p = strstr(p, "\r\n")) != NULL) {
|
||||
strcpy(p, p + 1);
|
||||
memmove(p, p + 1, strlen(p)); // strcpy() gives error under Ubuntu
|
||||
}
|
||||
#else
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user