]> git.neil.brown.name Git - wiggle.git/commit
nul terminate stream read from a file.
authorNeil Brown <neilb@suse.de>
Mon, 22 Aug 2011 08:08:02 +0000 (18:08 +1000)
committerNeil Brown <neilb@suse.de>
Mon, 22 Aug 2011 08:08:02 +0000 (18:08 +1000)
commitadeffd47ec50cf2fbc5bdf5dd56caaa7bf43d90b
treeb9d69ab2c89a49c155f28616ca8d9c5691f1e4e3
parent349179db4649c11a1c3c2f5d78c930692982442f
nul terminate stream read from a file.

Though we carry around the length of a string and so will not normally
need a nul terminator, we sometimes use sscanf which cannot take a
length and so needs nul termination.

So add a nul when loading from a file or stdin.

Signed-off-by: NeilBrown <neilb@suse.de>
extract.c
load.c
split.c
wiggle.h