unsufficient space allocated for handling strings in arguments
git-svn-id: https://www.grenoble.prabi.fr/svn/LECASofts/ecoPCR/trunk@595 60f365c0-8329-0410-b2a4-ec073aeeaa1d
This commit is contained in:
@ -233,13 +233,13 @@ int main(int argc, char **argv)
|
||||
break;
|
||||
|
||||
case 'r': /* rank filter */
|
||||
rankname = ECOMALLOC(strlen(optarg),"allocation rankname");
|
||||
rankname = ECOMALLOC(strlen(optarg)+1,"allocation rankname");
|
||||
strcpy(rankname,optarg);
|
||||
rankfilter = 0;
|
||||
break;
|
||||
|
||||
case 'd': /* path to the database */
|
||||
prefix = ECOMALLOC(strlen(optarg),"allocation prefix");
|
||||
prefix = ECOMALLOC(strlen(optarg)+1,"allocation prefix");
|
||||
strcpy(prefix,optarg);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user