X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Finfocmp.c;h=99db6bbb057f41e1d92a7fa2a3dbd70b115b8a05;hp=9b74ba00d542485780cb11d2e4b0ddefcf8a4606;hb=8144a95f5729b46a1ad4f4c3c4ba29800304e4c0;hpb=e0371a7943009d611a4dc080dcddfcdfba9f589b;ds=inline diff --git a/progs/infocmp.c b/progs/infocmp.c index 9b74ba00..99db6bbb 100644 --- a/progs/infocmp.c +++ b/progs/infocmp.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. * + * Copyright (c) 1998-2007,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -42,7 +42,7 @@ #include -MODULE_ID("$Id: infocmp.c,v 1.94 2007/11/17 23:34:26 tom Exp $") +MODULE_ID("$Id: infocmp.c,v 1.95 2008/01/05 20:53:20 tom Exp $") #define L_CURL "{" #define R_CURL "}" @@ -1450,7 +1450,7 @@ main(int argc, char *argv[]) } } - maxterms = (argc + 1 - optind); + maxterms = (argc + 2 - optind); tfile = typeMalloc(path, maxterms); tname = typeCalloc(char *, maxterms); entries = typeCalloc(ENTRY, maxterms);