Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115668084
D40042.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
747 B
Referenced Files
None
Subscribers
None
D40042.diff
View Options
diff --git a/usr.bin/tsort/tsort.c b/usr.bin/tsort/tsort.c
--- a/usr.bin/tsort/tsort.c
+++ b/usr.bin/tsort/tsort.c
@@ -183,8 +183,8 @@
/* do the sort */
tsort();
- if (ferror(stdout) != 0 || fflush(stdout) != 0)
- err(1, "stdout");
+ if (ferror(stdout) != 0 || fflush(stdout) != 0)
+ err(1, "stdout");
exit(0);
}
@@ -251,7 +251,7 @@
switch ((*db->get)(db, &key, &data, 0)) {
case 0:
- bcopy(data.data, &n, sizeof(n));
+ memcpy(&n, data.data, sizeof(n));
return (n);
case 1:
break;
@@ -268,7 +268,7 @@
n->n_arcs = NULL;
n->n_refcnt = 0;
n->n_flags = 0;
- bcopy(name, n->n_name, key.size);
+ memcpy(n->n_name, name, key.size);
/* Add to linked list. */
if ((n->n_next = graph) != NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 27, 8:34 PM (15 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17821665
Default Alt Text
D40042.diff (747 B)
Attached To
Mode
D40042: tsort: Replace bcopy() with memcpy().
Attached
Detach File
Event Timeline
Log In to Comment