bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] open_memstream-tests: new module


From: Paul Eggert
Subject: Re: [PATCH 1/2] open_memstream-tests: new module
Date: Fri, 23 Apr 2010 16:21:02 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Eric Blake <address@hidden> writes:

> +  ASSERT (STREQ (buf, "hello my world"));
> +  ASSERT (len = strlen (buf));

These two tests, plus some others, assume that open_memstream allocates
a buffer in which the output is NUL-terminated.  This isn't a portable
assumption (though it is often true, which I expect is why the tests
passed in your case).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]