1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

NUL vs NULL fix

* libguile/read.c (scm_i_scan_for_encoding): Fix NUL rather than NULL.
This commit is contained in:
Andy Wingo 2010-11-12 17:18:08 +01:00
parent 347ba27e4b
commit 190fa72a8f

View file

@ -1646,7 +1646,7 @@ scm_i_scan_for_encoding (SCM port)
return NULL;
bytes_read = scm_c_read (port, header, SCM_ENCODING_SEARCH_SIZE);
header[bytes_read] = NULL;
header[bytes_read] = '\0';
scm_seek (port, scm_from_int (0), scm_from_int (SEEK_SET));