Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix processing by striping trailing \n.
Vsevolod Stakhov committed 11 years ago
commit c06f81e19180bde1b96bd3d6e7dcbbf50420a9ee
parent 1954975
1 file changed +2 -2
modified libpkg/repo/binary/update.c
@@ -693,10 +693,10 @@ pkg_repo_binary_update_incremental(const char *name, struct pkg_repo *repo,
		/* files offset */
		strsep(&p, ":");
		if (p)
-
			length = strsep(&p, ":");
+
			length = strsep(&p, ":\n");
		/* Checksum */
		if (p)
-
			checksum = strsep(&p, ":");
+
			checksum = strsep(&p, ":\n");

		if (origin == NULL || digest == NULL ||
				offset == NULL) {