Ticket #64083: 1002-argc_sigsegv.patch

File 1002-argc_sigsegv.patch, 422 bytes (added by RobK88, 3 years ago)

Second Patch

  • main.c

    Subject: Fix SIGSEGV.
    Author: Bernhard Übelacker <bernhardu@vr-web.de>
    Bug-Debian: https://bugs.debian.org/715590
    Last-Update: 2014-07-03
    old new int main (int argc, const char * argv[]) 
    23152315        if (argc < 5) { USAGE }
    23162316        delta_bright = atoi(argv[4]);
    23172317#else
    2318         if (argc < 2) { USAGE }
     2318        if (argc < 3) { USAGE }
    23192319#endif
    23202320        fact_x = atof(argv[1]);
    23212321        sscanf(argv[2], "%lld", &orim2vsize);