]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Use PushParam instead of PushParamRef in TagMessage#PushTarget.
authorSadie Powell <sadie@witchery.services>
Wed, 22 Jan 2020 11:47:20 +0000 (11:47 +0000)
committerSadie Powell <sadie@witchery.services>
Wed, 22 Jan 2020 11:47:20 +0000 (11:47 +0000)
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.

include/modules/ctctags.h

index 68b8bcfdc762b3699d89085a04277d66b0826372..84fd7e93efb15c58c229acdfba711f42ca9d5479 100644 (file)
@@ -40,7 +40,7 @@ private:
                        PushParam(rawtarget);
                }
                else
-                       PushParamRef(target);
+                       PushParam(target);
        }
 
  public: