[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug with read-string!/partial
From: |
Han-Wen Nienhuys |
Subject: |
bug with read-string!/partial |
Date: |
Mon, 22 Aug 2005 23:14:05 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
Hi,
what's the proper way to use read-string!/partial ?
If I read a file with fewer bytes than the arg of read-string!/partial,
I get problems down the line, when
char *
scm_to_locale_stringn (SCM str, size_t *lenp)
checks whether
memcpy (res, scm_i_string_chars (str), len);
if (lenp == NULL)
{
res[len] = '\0';
if (strlen (res) != len)
{
free (res);
scm_misc_error (NULL,
"string contains #\\nul character: ~S",
scm_list_1 (str));
}
}
In addition, I this error message isn't printed properly, but I get
Converting to PNG...throw from within critical section.
Geannuleerd
muurbloem:~/src/lilypond$
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
- bug with read-string!/partial,
Han-Wen Nienhuys <=