summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-24 09:35:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-24 18:21:34 +0100
commitefa20d38fa51675e738ce50d6894b5df75debea0 (patch)
tree297ccdfa9d8720532a7e139299fde2acb509a9bb /tools/source
parent15bb6eede17160a84674ce4911bd0fdcee3c7747 (diff)
tdf#146382 cant open file from Explorer-attached remote location
problem spotted by mikekaganski regression from commit 0b46361ef84a61100a0274a007062317607d097a Author: Noel Grandin <noel@peralex.com> Date: Sat Nov 20 08:03:49 2021 +0200 tdf#133835 speedup calc autofilter (4) where I changed the behaviour of parseHostOrNetBiosName from overwriting the destination buffer to appending to it. Change-Id: I1bd3c7eade035a867c026364f5e114c1e652ca32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127352 Tested-by: Gabor Kelemen <kelemeng@ubuntu.com> Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 15bc492281111997a5da556961b923bb607642b6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127381
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/fsys/urlobj.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index 8c3d2845eab2..7b86fe0f5261 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -2880,7 +2880,10 @@ bool INetURLObject::parseHostOrNetBiosName(
}
}
if (pCanonic)
+ {
+ pCanonic->setLength(nOriginalCanonicLength);
pCanonic->append(buf);
+ }
}
else
{