]> pd.if.org Git - zpackage/commitdiff
add zero terminator do db init string
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 17 Sep 2016 18:13:41 +0000 (13:13 -0500)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 17 Sep 2016 18:13:41 +0000 (13:13 -0500)
Makefile

index 7270bde66368565c3159bfebc4d35c7d630e4bdb..18991523314f7e752ab8dec0dc4b197669b19825 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,7 +30,7 @@ zpm-extract: zpm-extract.o libzpm.a
 newdb.c: db.sql
        echo "char createdb[] = {" > $@
        xxd -i < $< >> $@
-       echo "};" >> $@
+       echo ", 0};" >> $@
 
 
 libzpm.a: lib/sha256.o lib/db.o lib/compress.o lib/uncompress.o newdb.o lib/zpm.o \