File: snprintf

package info (click to toggle)
r-bioc-rhdf5 2.50.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,584 kB
  • sloc: ansic: 8,521; cpp: 91; makefile: 11; python: 9; sh: 6
file content (22 lines) | stat: -rw-r--r-- 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Michael R. Crusoe <crusoe@debian.org>
Subject: Fix format arguments to match the data types
--- r-bioc-rhdf5.orig/src/utils.c
+++ r-bioc-rhdf5/src/utils.c
@@ -8,7 +8,7 @@
     memset(tmp, '\0',1000);
     strncpy(tmp, s1, 999);
 
-    snprintf(s1, 1000, "%.977s%llu%.3s", tmp, next_dim, index ? " x " : "");
+    snprintf(s1, 1000, "%.977s%lu%.3s", tmp, next_dim, index ? " x " : "");
 }
 
 void concatdim_native(char *s1, hsize_t next_dim, int index)
@@ -17,7 +17,7 @@
     memset(tmp, '\0',1000);
     strncpy(tmp, s1, 999);
     
-    snprintf(s1, 1000, "%.977s%.3s%llu", tmp, index ? " x " : "", next_dim);
+    snprintf(s1, 1000, "%.977s%.3s%lu", tmp, index ? " x " : "", next_dim);
 }