The Samba-Bugzilla – Attachment 6397 Details for
Bug 8053
Older C compilers don't allow in-line declarations flist.c:1653
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Move the var declaration up
var-fix.patch (text/plain), 588 bytes, created by
Wayne Davison
on 2011-04-10 22:11:30 UTC
(
hide
)
Description:
Move the var declaration up
Filename:
MIME Type:
Creator:
Wayne Davison
Created:
2011-04-10 22:11:30 UTC
Size:
588 bytes
patch
obsolete
>index 7102b5b..9e5bdd0 100644 >--- a/flist.c >+++ b/flist.c >@@ -1646,11 +1646,12 @@ static void send_directory(int f, struct file_list *flist, char *fbuf, int len, > remainder = 0; > > for (errno = 0, di = readdir(d); di; errno = 0, di = readdir(d)) { >+ unsigned name_len; > char *dname = d_name(di); > if (dname[0] == '.' && (dname[1] == '\0' > || (dname[1] == '.' && dname[2] == '\0'))) > continue; >- unsigned name_len = strlcpy(p, dname, remainder); >+ name_len = strlcpy(p, dname, remainder); > if (name_len >= remainder) { > char save = fbuf[len]; > fbuf[len] = '\0';
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 8053
: 6397