summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-01-22 11:47:20 +0000
committerSadie Powell <sadie@witchery.services>2020-01-22 11:47:20 +0000
commitb7382a91384e6e9463ba85c6effec32f071dd4ca (patch)
treea85142ba46ddb67b8a1559177123017cdce27978
parentb759870d742f1611ff64ca899e083d5467ebcf3b (diff)
Use PushParam instead of PushParamRef in TagMessage#PushTarget.
This could be a temporary string so copy it instead of risking a crash and/or dumping the contents of memory into messages. This fixes a crash introduced last week.
-rw-r--r--include/modules/ctctags.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/ctctags.h b/include/modules/ctctags.h
index 68b8bcfdc..84fd7e93e 100644
--- a/include/modules/ctctags.h
+++ b/include/modules/ctctags.h
@@ -40,7 +40,7 @@ private:
PushParam(rawtarget);
}
else
- PushParamRef(target);
+ PushParam(target);
}
public: