projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c33b87
)
Optimize a bit by using mempcpy.
author
drepper
<drepper>
Wed, 5 Nov 1997 23:20:12 +0000
(23:20 +0000)
committer
drepper
<drepper>
Wed, 5 Nov 1997 23:20:12 +0000
(23:20 +0000)
nss/nsswitch.c
patch
|
blob
|
history
diff --git
a/nss/nsswitch.c
b/nss/nsswitch.c
index
18129bb
..
36c1d00
100644
(file)
--- a/
nss/nsswitch.c
+++ b/
nss/nsswitch.c
@@
-587,8
+587,7
@@
nss_parse_service_list (const char *line)
free (new_service);
return result;
}
- memcpy (source, name, line - name);
- source[line - name] = '\0';
+ *((char *) __mempcpy (source, name, line - name)) = '\0';
new_service->name = source;
}