opnsense-ports/comms/qpage/files/patch-util.c
Franco Fichtner 25297f7447 */*: sync with upstream
Taken from: FreeBSD
2016-03-15 07:37:34 +01:00

11 lines
247 B
C

--- util.c.orig 1998-10-25 19:55:11 UTC
+++ util.c
@@ -537,7 +537,7 @@ msgcpy(char *dst, char *src, int n)
** Now make sure we didn't chop a word in the middle.
*/
if (*src && end) {
- *end++ = '\0';
+ *++end = '\0';
src = start;
}