From 4e9583ef54d70bf93419c63469562a7d74c66b17 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 13 Dec 2023 17:53:46 -0800 Subject: [PATCH] nostrdb/stream: actually use file pointer in stream api Right now it's accidently hardcoded. Fixes: 8376e5bca05c ("add "import -"") Signed-off-by: William Casarin --- nostrdb/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c index 745e3e90..63f68313 100644 --- 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);