From 528f017cdebf19e2868bb77891e28e628defd13c Mon Sep 17 00:00:00 2001 From: Eric Gillespie Date: Thu, 14 Aug 2008 01:31:11 +0000 Subject: [PATCH] * uip/pick.c: Ensure valid sequence name as soon as we parse it from command, instead of searching the messages first. --- ChangeLog | 2 ++ uip/pick.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 969241f..f3eb541 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,8 @@ * uip/pick.c: Print matching messages immediately, instead of waiting until the very end to print anything. + Ensure valid sequence name as soon as we parse it from command, + instead of searching the messages first. 2008-08-13 Eric Gillespie diff --git a/uip/pick.c b/uip/pick.c index 7aa4870..e0d6136 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -153,6 +153,10 @@ main (int argc, char **argv) /* check if too many sequences specified */ if (seqp >= NUMATTRS) adios (NULL, "too many sequences (more than %d) specified", NUMATTRS); + + if (!seq_nameok (cp)) + done (1); + seqs[seqp++] = cp; continue; case PUBLSW: -- 1.7.10.4