Browse Source

Applied a patch to support OpenBSD.

dtrg 17 years ago
parent
commit
002c49ec2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pm

+ 1 - 1
pm

@@ -29,7 +29,7 @@ trap "rm -f $GZFILE $CFILE" EXIT
 extract_section() {
 	sed -e "1,/^XXXXSTART$1/d" "$THISFILE" | (
 		read size
-		head -c $size
+		dd bs=1 count=$size 2> /dev/null
 	) > $GZFILE
 	cat $GZFILE | cat
 }