On 12/29/2010 10:25 AM, Jim Meyering wrote:
>          char const drive[3] = { fs_name[0], ':', '\0' };

The Microsoft documentation says that a trailing
backslash is required here; see
<http://msdn.microsoft.com/en-us/library/aa364939%28v=vs.85%29.aspx>.

Also, are pre-C99 compilers are still a possibility
when __CYGWIN__ is defined?  If so, the above needs
to be reworded into something like this:

       char drive[4];
       sprintf (drive, "%c:\\", fs_name[0]);

because C89 requires constant expressions in initializers
for aggregate objects.

Reply via email to