The Samba-Bugzilla – Attachment 6034 Details for
Bug 7754
samba uses index(), marked as legacy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to replace use of index() with strchr()
samba-remove-legacy-index.patch (text/plain), 544 bytes, created by
Sven Neumann
on 2010-10-26 14:16:05 UTC
(
hide
)
Description:
patch to replace use of index() with strchr()
Filename:
MIME Type:
Creator:
Sven Neumann
Created:
2010-10-26 14:16:05 UTC
Size:
544 bytes
patch
obsolete
>--- a/source3/registry/reg_perfcount.c >+++ b/source3/registry/reg_perfcount.c >@@ -616,14 +616,14 @@ static bool _reg_perfcount_add_counter(P > obj = NULL; > memset(buf, 0, PERFCOUNT_MAX_LEN); > memcpy(buf, data.dptr, data.dsize); >- begin = index(buf, '['); >- end = index(buf, ']'); >+ begin = strchr(buf, '['); >+ end = strchr(buf, ']'); > if(begin == NULL || end == NULL) > return False; > start = begin+1; > > while(start < end) { >- stop = index(start, ','); >+ stop = strchr(start, ','); > if(stop == NULL) > stop = end; > *stop = '\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 7754
: 6034