gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [bug #46241] ImgCrop segfaults with long output file na


From: Vladimir Markelov
Subject: [gnuastro-devel] [bug #46241] ImgCrop segfaults with long output file names
Date: Mon, 1 Aug 2016 20:29:46 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0

Follow-up Comment #2, bug #46241 (project gnuastro):

The patch was not final, it was more like a draft. I just wanted to show the
way to fix. I like more the patch without dynamic memory allocation
(example):

char job_name[31];
strncpy(job_name, log->name, 30);
job_name[30] = '\0';
sprintf(msg, "%-30s %lu %d", job_name, log->numimg,
                  log->centerfilled);
gal_timing_report(NULL, msg, 2);

If my fix is accepted, I'll rewrite my patch in the way above and then it can
be merged to the master branch

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46241>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]