File: putcols.c.patch

package info (click to toggle)
python-fitsio 1.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,200 kB
  • sloc: ansic: 9,410; python: 5,802; makefile: 9
file content (20 lines) | stat: -rw-r--r-- 591 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- cfitsio-4.2.0/putcols.c	2022-10-31 14:40:24.000000000 -0400
+++ cfitsio-4.2.0/putcols.c	2023-07-14 11:49:03.954820768 -0400
@@ -157,7 +157,16 @@
 
          for (;jj < twidth; jj++)    /* fill field with blanks, if needed */
          {
-           *buffer = ' ';
+           if ( fits_use_standard_strings() ) {
+               if (snull[0] == ASCII_NULL_UNDEFINED) {
+                   *buffer = ' ';
+               } else {
+                   *buffer = '\0';
+               }
+           } else {
+               *buffer = ' ';
+           }
+
            buffer++;
          }