astropy/astropy — pull request #2350 by mdboom (2014-04-21 22:29:58+00:00)
Title: Fix allocation of temporary buffer in `Wcsprm.set`.  

The number of axes returned may be up to twice as many as requested. Rather than being smart about it, just allocate the buffer to be twice as large -- these are very small buffers in any case (one int per dimension).