gnuastro-devel
[Top][All Lists]
Advanced

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

[gnuastro-devel] [bug #48899] Automatic output would not add suffix if i


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #48899] Automatic output would not add suffix if input didn't have a suffix
Date: Thu, 25 Aug 2016 14:52:55 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

URL:
  <http://savannah.gnu.org/bugs/?48899>

                 Summary: Automatic output would not add suffix if input
didn't have a suffix
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Thu 25 Aug 2016 11:52:52 PM JST
                Category: Libraries
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: In Progress
                 Privacy: Public
             Assigned to: makhlaghi
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

`gal_checkset_automatic_output' plays an important role in setting the output
file name of most utilities: it will remove an existing suffix and add the
utility-specific suffix. It is called when the user doesn't specify any
output.

As described in the comments, this function is suppose to add a suffix is one
doesn't exist. However, during my work, I noticed this is not the case: if
there is no suffix in the input, there will be no suffix in the output
either.

The problem was that the function will write over the space allocated by
`gal_checkset_malloc_cat', with an `strcpy' call immediately before the suffix
searching loop. I am working on the fix now.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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