1
0
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:
Simo Sorce 0001-01-01 00:00:00 +00:00
parent 00fa66df3e
commit e05eb14370

View File

@ -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);
}