Patches from Walter C. Pelissero on clsql mail list
[clsql.git] / uffi / clsql-uffi.lisp
index 7a4dbbb1ddc821f1923b2e71c9fd2f4785e50f4a..11038d56851142e09385fbfa86d28970ada79642 100644 (file)
             (error "Can't return blob since length is not specified.")))
        (t
         (uffi:convert-from-foreign-string char-ptr
-                                          :null-terminated-p nil
+                                          :null-terminated-p (not length)
                                           :length length
                                           :encoding encoding))))))