Commit 75f60443 by Andrew Pinski Committed by Andrew Pinski

+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
parent bd831d5c
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> 2003-10-06 Roger Sayle <roger@eyesopen.com>
* optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
......
...@@ -311,7 +311,7 @@ machopic_non_lazy_ptr_name (const char *name) ...@@ -311,7 +311,7 @@ machopic_non_lazy_ptr_name (const char *name)
{ {
buffer[bufferlen] = '_'; buffer[bufferlen] = '_';
memcpy (buffer + bufferlen +1, name, namelen+1); memcpy (buffer + bufferlen +1, name, namelen+1);
bufferlen += namelen; bufferlen += namelen +1;
} }
memcpy (buffer + bufferlen, "$non_lazy_ptr", strlen("$non_lazy_ptr")+1); memcpy (buffer + bufferlen, "$non_lazy_ptr", strlen("$non_lazy_ptr")+1);
...@@ -386,7 +386,7 @@ machopic_stub_name (const char *name) ...@@ -386,7 +386,7 @@ machopic_stub_name (const char *name)
{ {
buffer[bufferlen] = '_'; buffer[bufferlen] = '_';
memcpy (buffer + bufferlen +1, name, namelen+1); memcpy (buffer + bufferlen +1, name, namelen+1);
bufferlen += namelen; bufferlen += namelen +1;
} }
if (needs_quotes) if (needs_quotes)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment