+2003-10-06 Andrew Pinski <apinski@apple.com> + + * config/darwin.c...

+2003-10-06  Andrew Pinski  <apinski@apple.com>
+
+	* config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
+	error in calculating the length of the string.
+	(machopic_stub_name): Likewise.

From-SVN: r72149
This commit is contained in:
Andrew Pinski 2003-10-06 13:35:36 +00:00 committed by Andrew Pinski
parent bd831d5cee
commit 75f604438c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-10-06 Andrew Pinski <apinski@apple.com>
* config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
error in calculating the length of the string.
(machopic_stub_name): Likewise.
2003-10-06 Roger Sayle <roger@eyesopen.com>
* optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note

View File

@ -311,7 +311,7 @@ machopic_non_lazy_ptr_name (const char *name)
{
buffer[bufferlen] = '_';
memcpy (buffer + bufferlen +1, name, namelen+1);
bufferlen += namelen;
bufferlen += namelen +1;
}
memcpy (buffer + bufferlen, "$non_lazy_ptr", strlen("$non_lazy_ptr")+1);
@ -386,7 +386,7 @@ machopic_stub_name (const char *name)
{
buffer[bufferlen] = '_';
memcpy (buffer + bufferlen +1, name, namelen+1);
bufferlen += namelen;
bufferlen += namelen +1;
}
if (needs_quotes)