summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/sn/sngrep/fix-sng_strncpy-declaration.patch
blob: 5f2aa4d573f67dd8050f72794477aa3cef59be3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/util.h
+++ b/src/util.h
@@ -58,6 +58,12 @@
 char *
 sng_basename(const char *name);
 
+/**
+ * @brief Wrapper for strncpy
+ */
+char *
+sng_strncpy(char *dst, const char *src, size_t len);
+
 /**
  * @brief Compare two timeval structures
  *