Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
shlib: stop copying when reaching the end of the path string
Baptiste Daroussin committed 8 months ago
commit 0e26425d7043840cf3daca6f0a85fa0f1853ce5a
parent 0754822e1bb18866620d0163051eb4bc12392d2e
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') {