Changeset 615


Ignore:
Timestamp:
May 9, 2011, 12:55:18 AM (6 years ago)
Author:
sam
Message:

tool: fix a crash in abuse-tool.

Location:
abuse/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/TODO

    r613 r615  
    1515ABUSE-TOOL
    1616----------
    17  - segfault with "abuse-tool foo.spe put 1 2" (missing argument)
    18  - add an option to display an md5sum or something
    1917 - allow to query ids by name rather than by number
    2018
  • abuse/trunk/src/tool/abuse-tool.cpp

    r585 r615  
    7777        break;
    7878    case CMD_PUT:
    79         minargc = 5;
     79        minargc = 6;
    8080        break;
    8181    case CMD_MOVE:
     
    9696        break;
    9797    case CMD_PUTPCX:
    98         minargc = 5;
     98        minargc = 6;
    9999        break;
    100100    }
     
    102102    if (argc < minargc)
    103103    {
    104         fprintf(stderr, "abuse-tool: too few arguments to command `%s'\n",
     104        fprintf(stderr, "abuse-tool: too few arguments for command `%s'\n",
    105105                         argv[2]);
    106106        return EXIT_FAILURE;
Note: See TracChangeset for help on using the changeset viewer.