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:
parent
347ba27e4b
commit
190fa72a8f
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue