mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 22:03:03 +01:00
Fix const-correctness of ISC_expand_filename. Thanks to Andrew Gough
This commit is contained in:
parent
75ef4158ab
commit
44216d1e3b
@ -1154,8 +1154,11 @@ static int expand_filename2(TEXT * from_buff, USHORT length, TEXT * to_buff)
|
||||
temp2[length] = 0;
|
||||
from = temp2;
|
||||
}
|
||||
else
|
||||
from = from_buff;
|
||||
else {
|
||||
strncpy(temp2, from_buff, MAXPATHLEN);
|
||||
temp2[MAXPATHLEN-1] = 0;
|
||||
from = temp2;
|
||||
}
|
||||
|
||||
to = to_buff;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user