The Samba-Bugzilla – Attachment 1046 Details for
Bug 2481
lib/util_str.c: p should be "char *"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
change p to "char *" and removes an "unsigned char *" typecast
bug2481.patch (text/plain), 651 bytes, created by
Jason Mader (mail bounces back)
on 2005-03-18 10:47:57 UTC
(
hide
)
Description:
change p to "char *" and removes an "unsigned char *" typecast
Filename:
MIME Type:
Creator:
Jason Mader (mail bounces back)
Created:
2005-03-18 10:47:57 UTC
Size:
651 bytes
patch
obsolete
>Index: lib/util_str.c >=================================================================== >--- lib/util_str.c (revision 5865) >+++ lib/util_str.c (working copy) >@@ -365,14 +365,14 @@ > > void string_replace(pstring s,char oldc,char newc) > { >- unsigned char *p; >+ char *p; > > /* this is quite a common operation, so we want it to be > fast. We optimise for the ascii case, knowing that all our > supported multi-byte character sets are ascii-compatible > (ie. they match for the first 128 chars) */ > >- for (p = (unsigned char *)s; *p; p++) { >+ for (p = s; *p; p++) { > if (*p & 0x80) /* mb string - slow path. */ > break; > if (*p == oldc)
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 2481
: 1046