summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-05-29 22:40:16 +1000
committerMaxime Coste <mawww@kakoune.org>2019-05-29 22:40:16 +1000
commit7efdbb456d6855fe72790050d067c8a1b66993ba (patch)
treec20c79407f036ebbeffd64e7089da185e6b717c9 /src
parent14f45c0020c75007b45c51fc45a63eb8112f7d22 (diff)
Null terminate gdb auto-load script
Fixes #2929
Diffstat (limited to 'src')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 0902421c..b4622aea 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -1167,7 +1167,7 @@ asm(R"(
.ascii "sys.path.insert(0, os.path.dirname(gdb.current_objfile().filename) + '/../share/kak/gdb/')\n"
.ascii "import gdb.printing\n"
.ascii "import kakoune\n"
-.ascii "gdb.printing.register_pretty_printer(gdb.current_objfile(), kakoune.build_pretty_printer())\n"
+.ascii "gdb.printing.register_pretty_printer(gdb.current_objfile(), kakoune.build_pretty_printer())\n\0"
.popsection
)");
#endif