ports/devel/libunistring/files/patch-lib_unistr_u8-strncpy.c
takefu 80697b29ae devel/libunistring: Update to 1.3
Committers note:
Add a few more sections in port Makefile to make it easier to follow and
to follow Porters Handbook more closely

Changelog: https://savannah.gnu.org/news/?id=10682

PR:		283588
2025-01-15 20:42:17 +01:00

17 lines
389 B
C

--- lib/unistr/u8-strncpy.c.orig 2024-01-29 00:58:11 UTC
+++ lib/unistr/u8-strncpy.c
@@ -28,10 +28,6 @@
/* Specification. */
#include "unistr.h"
-#include <string.h>
-
-uint8_t *
-u8_strncpy (uint8_t *dest, const uint8_t *src, size_t n)
-{
- return (uint8_t *) strncpy ((char *) dest, (const char *) src, n);
-}
+#define FUNC u8_strncpy
+#define UNIT uint8_t
+#include "u-strncpy.h"