| delorie.com/archives/browse.cgi | search |
| Delivered-To: | listarch-cygwin AT sourceware DOT cygnus DOT com |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Thu, 18 Feb 1999 10:16:08 +0100 |
| X-Mailer: | Virtual Access by Atlantic Coast PLC, http://www.soft-shop.com |
| Message-Id: | <VA.00000094.00659f6a@lange-pc.ekb.de> |
| To: | cygwin AT sourceware DOT cygnus DOT com, Christian Lange <clan AT snafu DOT de> |
| Subject: | Access violation on egcs-1.1.1 |
| Mime-Version: | 1.0 |
| From: | Christian Lange <clan AT snafu DOT de> |
| Reply-To: | clan AT snafu DOT de |
The following piece of code yields a STATUS_ACCESS_VIOLATION when
compiled with egcs-1.1.1 for Cygwin b20 as C++ source:
BYTE *my_strncpy( BYTE *d, const BYTE *s, int len )
{
strncpy((char*)d, (const char *)s, len );
d[len-1] = 0x00;
return d;
}
BYTE *my_strncat( BYTE *d, const BYTE *s, int len )
{
strncat((char*)d, (const char*)s, len);
d[len-1] = 0x00;
return d;
}
The problem disappears when BYTE is declared something useful.
- Christian Lange
--
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |