]> git.pld-linux.org Git - packages/lxc.git/blobdiff - x32.patch
typo fix
[packages/lxc.git] / x32.patch
index fd93b547510a51140d3ccbf2518a8d59cb17adb7..b3207a8b522c535ed49abed3eb6cdf9d8e132579 100644 (file)
--- a/x32.patch
+++ b/x32.patch
@@ -1,14 +1,15 @@
---- lxc-2.0.8/src/lxc/log.c~   2017-05-11 19:23:06.000000000 +0200
-+++ lxc-2.0.8/src/lxc/log.c    2017-05-27 21:36:35.137755023 +0200
-@@ -154,7 +154,11 @@
+diff -urN lxc-3.0.3.orig/src/lxc/log.c lxc-3.0.3/src/lxc/log.c
+--- lxc-3.0.3.orig/src/lxc/log.c       2018-11-23 00:08:27.000000000 +0100
++++ lxc-3.0.3/src/lxc/log.c    2019-01-28 19:52:33.204408097 +0100
+@@ -271,7 +271,11 @@
        seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
  
        /* Make string from nanoseconds. */
-+#ifdef __ILP32__
-+      ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%lld", time->tv_nsec);
-+#else
-       ret = snprintf(nanosec, LXC_NUMSTRLEN64, "%ld", time->tv_nsec);
-+#endif
-       if (ret < 0 || ret >= LXC_NUMSTRLEN64)
++        #ifdef __ILP32__
++        ret = snprintf(nanosec, sizeof(nanosec), "%lld", (int64_t)time->tv_nsec);
++        #else
+       ret = snprintf(nanosec, sizeof(nanosec), "%"PRId64, (int64_t)time->tv_nsec);
++      #endif
+       if (ret < 0 || ret >= sizeof(nanosec))
                return -1;
  
This page took 0.065043 seconds and 4 git commands to generate.