mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
backport from head
This commit is contained in:
parent
00fa66df3e
commit
e05eb14370
@ -65,6 +65,9 @@ ftruncate for operating systems that don't have it
|
||||
size_t len2 = strlen(s);
|
||||
size_t ret = len1 + len2;
|
||||
|
||||
if (len1 >= bufsize) {
|
||||
return 0;
|
||||
}
|
||||
if (len1+len2 >= bufsize) {
|
||||
len2 = bufsize - (len1+1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user