FreeBSD Bugzilla – Attachment 90458 Details for
Bug 127639
Segfault in x_realloc devel/ccache
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch-args.c
patch-args.c (text/plain), 516 bytes, created by
Mel
on 2008-09-25 20:50:02 UTC
(
hide
)
Description:
patch-args.c
Filename:
MIME Type:
Creator:
Mel
Created:
2008-09-25 20:50:02 UTC
Size:
516 bytes
patch
obsolete
>--- args.c.orig 2004-09-13 02:38:30.000000000 -0800 >+++ args.c 2008-09-25 04:58:35.000000000 -0800 >@@ -37,7 +37,13 @@ > > void args_add(ARGS *args, const char *s) > { >+#ifndef __FreeBSD__ > args->argv = (char**)x_realloc(args->argv, (args->argc + 2) * sizeof(char *)); >+#else >+ args->argv = reallocf((char *)args->argv, (args->argc + 2) * sizeof(char *)); >+ if( args->argv == NULL ) >+ fatal("out of memory in reallocf"); >+#endif > args->argv[args->argc] = x_strdup(s); > args->argc++; > args->argv[args->argc] = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 127639
: 90458