]> git.pld-linux.org Git - packages/sblim-sfcb.git/blobdiff - sblim-sfcb-dont-inline.patch
- don't inline strncpy_kind
[packages/sblim-sfcb.git] / sblim-sfcb-dont-inline.patch
diff --git a/sblim-sfcb-dont-inline.patch b/sblim-sfcb-dont-inline.patch
new file mode 100644 (file)
index 0000000..2988fb2
--- /dev/null
@@ -0,0 +1,11 @@
+--- sblim-sfcb-1.4.9/control.c~        2014-11-25 02:43:10.000000000 +0100
++++ sblim-sfcb-1.4.9/control.c 2018-09-29 23:23:00.359541768 +0200
+@@ -83,7 +83,7 @@
+  * Kindly null terminate, always, even if might overwrite
+  * the last char of the truncated string. 
+ */
+-inline char *strncpy_kind(char *to, char *from, size_t size) {
++char *strncpy_kind(char *to, char *from, size_t size) {
+   strncpy(to, from, size);
+   *(to + size - 1) = '\0';
+   return to;
This page took 0.058745 seconds and 4 git commands to generate.