projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea04c4a
)
one more off by one error.
author
Andrew Pinski
<pinskia@gcc.gnu.org>
Mon, 6 Oct 2003 06:38:04 +0000
(23:38 -0700)
committer
Andrew Pinski
<pinskia@gcc.gnu.org>
Mon, 6 Oct 2003 06:38:04 +0000
(23:38 -0700)
From-SVN: r72133
gcc/config/darwin.c
patch
|
blob
|
history
diff --git
a/gcc/config/darwin.c
b/gcc/config/darwin.c
index 6688bbe32b6ff767fca7382adba5a5f802337e6b..f47768829674a92a83779efb03139bac06facbef 100644
(file)
--- a/
gcc/config/darwin.c
+++ b/
gcc/config/darwin.c
@@
-391,12
+391,12
@@
machopic_stub_name (const char *name)
if (needs_quotes)
{
if (needs_quotes)
{
- memcpy (buffer + bufferlen +1, "$stub\"", strlen("$stub\""));
+ memcpy (buffer + bufferlen +1, "$stub\"", strlen("$stub\"")
+1
);
bufferlen += strlen("$stub\"");
}
else
{
bufferlen += strlen("$stub\"");
}
else
{
- memcpy (buffer + bufferlen +1, "$stub", strlen("$stub"));
+ memcpy (buffer + bufferlen +1, "$stub", strlen("$stub")
+1
);
bufferlen += strlen("$stub");
}
ptr_name = get_identifier (buffer);
bufferlen += strlen("$stub");
}
ptr_name = get_identifier (buffer);