I'm dumb. Read-sequence destructively modifies the sequence rather than handing it back.
This commit is contained in:
parent
0837833c14
commit
1669746756
1 changed files with 3 additions and 2 deletions
|
@ -55,8 +55,9 @@
|
|||
(parse-field (str)
|
||||
(nth-value 1 (cl-ppcre:scan-to-strings "[a-zA-Z]+: (.*)" str)))
|
||||
(slurp-remainder ()
|
||||
(read-sequence (make-string (- (file-length in) (file-position in)))
|
||||
in :start (file-position in))))
|
||||
(let ((seq (make-string (- (file-length in) (file-position in)))))
|
||||
(read-sequence seq in)
|
||||
(remove #\Nul seq))))
|
||||
(check-header)
|
||||
(let ((args (loop for field in '("title" "tags" "date" "format")
|
||||
for line = (read-line in nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue