Bugzilla – Attachment 652 Details for
Bug 4861
tlclient.exe still does not run correctly on Wine
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Use own implementation of vasprintf
foo.patch (text/plain), 716 bytes, created by
Peter Åstrand
on 2015-10-28 16:13:47 CET
(
hide
)
Description:
Use own implementation of vasprintf
Filename:
MIME Type:
Creator:
Peter Åstrand
Created:
2015-10-28 16:13:47 CET
Size:
716 bytes
patch
obsolete
>Index: client/openssh/xmalloc.c >=================================================================== >--- client/openssh/xmalloc.c (revision 30927) >+++ client/openssh/xmalloc.c (arbetskopia) >@@ -79,6 +79,18 @@ > return cp; > } > >+static inline int myvasprintf(char **PTR, const char *TEMPLATE, va_list AP) >+{ >+ int res; >+ char buf[16000]; >+ res = vsnprintf(buf, 16000, TEMPLATE, AP); >+ if (res > 0) { >+ *PTR = (char*)malloc(res + 1); >+ res = vsnprintf(*PTR, res + 1, TEMPLATE, AP); >+ } >+ return res; >+} >+ > int > xasprintf(char **ret, const char *fmt, ...) > { >@@ -86,7 +98,7 @@ > int i; > > va_start(ap, fmt); >- i = vasprintf(ret, fmt, ap); >+ i = myvasprintf(ret, fmt, ap); > va_end(ap); > > if (i < 0 || *ret == 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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4861
:
496
| 652