summaryrefslogtreecommitdiff
path: root/soltools
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-01-22 03:13:16 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-01-22 03:13:16 +0200
commit4e6ca0ec0398b11e4078c8da075022a925da0330 (patch)
treef749fea59b777a988e2a4896b26c9b5634e20e06 /soltools
parent148739e8bd2b5076d4cc851539ba7266d6b7075c (diff)
Don't strip _ prefixes for x64 Windows
Diffstat (limited to 'soltools')
-rw-r--r--soltools/ldump/ldump.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/soltools/ldump/ldump.cxx b/soltools/ldump/ldump.cxx
index cbb228e82351..c19f50e08087 100644
--- a/soltools/ldump/ldump.cxx
+++ b/soltools/ldump/ldump.cxx
@@ -211,8 +211,10 @@ bool LibDump::Dump()
//fprintf( stderr, "Gefundenen Prefix : %s %d \n", aTmpBuf, nPreLen );
// den ersten _ raus
nLen = (int) strlen(aName);
+#ifndef _WIN64
if (aName[0] == '_')
strcpy( aBuf , &aName[1] );
+#endif
strncpy ( aTmpBuf, aBuf, (size_t) nPreLen );
aTmpBuf[nPreLen] = '\0';
if ( !strcmp( aTmpBuf, cAPrefix ))
@@ -220,13 +222,13 @@ bool LibDump::Dump()
if ( bLdump3 ) {
int nChar = '@';
char *pNeu = strchr( aBuf, nChar );
- int nPos = pNeu - aBuf + 1;
+ size_t nPos = pNeu - aBuf + 1;
if ( nPos > 0 )
{
char aOldBuf[MAX_MAN];
strcpy( aOldBuf, aBuf );
char pChar[MAX_MAN];
- strncpy( pChar, aBuf, (size_t) (nPos -1) );
+ strncpy( pChar, aBuf, nPos - 1 );
pChar[nPos-1] = '\0';
strcpy( aBuf, pChar );
strcat( aBuf, "=" );