Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
shlib: stop copying when reaching the end of the path string
Baptiste Daroussin committed 7 months ago
commit 0e26425d7043840cf3daca6f0a85fa0f1853ce5a
parent 0754822
1 file changed +2 -0
modified src/shlib.c
@@ -61,6 +61,8 @@ sanitize(char *buf, const char *src, size_t size)
			return (NULL);
		}
		*dst++ = *src++;
+
		if (*src == '\0')
+
			break;
		size--;
	}
	if (*src != '\0') {