commit 4e9583ef54d70bf93419c63469562a7d74c66b17
parent cc95d5df6e1ca9c69c3d556c6e23645676e3416d
Author: William Casarin <jb55@jb55.com>
Date: Wed, 13 Dec 2023 17:53:46 -0800
nostrdb/stream: actually use file pointer in stream api
Right now it's accidently hardcoded.
Fixes: 8376e5bca05c ("add "import -"")
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c
@@ -3250,7 +3250,7 @@ int ndb_process_events_stream(struct ndb *ndb, FILE* fp)
size_t len = 0;
ssize_t nread;
- while ((nread = getline(&line, &len, stdin)) != -1) {
+ while ((nread = getline(&line, &len, fp)) != -1) {
if (line == NULL)
break;
ndb_process_event(ndb, line, len);