mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
Fix last character being truncated in clipboard::copy_text due to off-by-one error (#262)
## Link to GitHub Issue, if one exists n/a, user reported ## Description of change When copying text to clipboard, the last character was being dropped due to incorrect string buffer size calculation. Also, clean up callers to just pass std:string by reference instead of going back and forth between C-style strings. Lastly, fix `git archive` in `build_all.sh` which broke after github migration. ## Compiling Yes ## Testing Tested all three callers - IIDX cam hook, scard reader in Cards tab, and patch manager datecode.
This commit is contained in:
@@ -189,7 +189,7 @@ mkdir -p ${OUTDIR}/src
|
||||
if ((INCLUDE_SRC > 0))
|
||||
then
|
||||
echo "Generating source file archive..."
|
||||
git archive --format tar.gz --prefix=spice2x/ HEAD > ${OUTDIR}/src/spice2x-${GIT_BRANCH}.tar.gz 2>/dev/null || \
|
||||
git archive --format tar.gz --prefix=spice2x/ HEAD ./ > ${OUTDIR}/src/spice2x-${GIT_BRANCH}.tar.gz 2>/dev/null || \
|
||||
echo "WARNING: Couldn't get git to create the archive. Is this a git repository?"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user