1.0.13.7: Fix off-by-one regression in STRING-LIST-TO-C-STRVEC
authorJuho Snellman <jsnell@iki.fi>
Tue, 1 Jan 2008 14:49:49 +0000 (14:49 +0000)
committerJuho Snellman <jsnell@iki.fi>
Tue, 1 Jan 2008 14:49:49 +0000 (14:49 +0000)
        * "Since 1.0.12.21, the size variable already includes the null byte."
        * Patch by David Lichteblau

src/code/run-program.lisp
version.lisp-expr

index e1ab659..5339eb1 100644 (file)
@@ -489,7 +489,7 @@ status slot."
         ;; Put the pointer in the vector.
         (setf (sap-ref-sap vec-sap vec-index-offset) string-sap)
         ;; Advance string-sap for the next string.
-        (setf string-sap (sap+ string-sap (round-bytes-to-words (1+ size))))
+        (setf string-sap (sap+ string-sap (round-bytes-to-words size)))
         (incf vec-index-offset bytes-per-word)))
     ;; Final null pointer.
     (setf (sap-ref-sap vec-sap vec-index-offset) (int-sap 0))
index 02fd538..9f414da 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"1.0.13.6"
+"1.0.13.7"