Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149626993
D4722.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
768 B
Referenced Files
None
Subscribers
None
D4722.diff
View Options
Index: head/sbin/mount/mount.c
===================================================================
--- head/sbin/mount/mount.c
+++ head/sbin/mount/mount.c
@@ -541,7 +541,7 @@
{
if (sa->c + 1 == sa->sz) {
sa->sz = sa->sz == 0 ? 8 : sa->sz * 2;
- sa->a = realloc(sa->a, sizeof(sa->a) * sa->sz);
+ sa->a = realloc(sa->a, sizeof(*sa->a) * sa->sz);
if (sa->a == NULL)
errx(1, "realloc failed");
}
Index: head/sbin/umount/umount.c
===================================================================
--- head/sbin/umount/umount.c
+++ head/sbin/umount/umount.c
@@ -434,7 +434,7 @@
{
static struct statfs *mntbuf;
static size_t mntsize = 0;
- static char *mntcheck = NULL;
+ static int *mntcheck = NULL;
struct statfs *sfs, *foundsfs;
int i, count;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 26, 7:06 PM (8 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30348557
Default Alt Text
D4722.diff (768 B)
Attached To
Mode
D4722: Fix type mismatches for malloc(3) and Co.
Attached
Detach File
Event Timeline
Log In to Comment