null-terminated a string before passing to a C function

This commit is contained in:
2021-10-16 15:19:10 +00:00
parent 3337936c8c
commit d9f957300e
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,3 @@
all:
gnat make -gnata hello && valgrind ./hello
gnat make -gnata hello2 && valgrind ./hello2
gnat make -gnata -gnatW8 hello && valgrind ./hello
gnat make -gnata -gnatW8 hello2 && valgrind ./hello2