Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etercifs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etercifs
Commits
184bd032
Commit
184bd032
authored
Aug 08, 2014
by
Pavel Shilovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 3.10 sources from stable (v3.10.52)
parent
24ebb52c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
cifs_unicode.c
sources/3.10/cifs_unicode.c
+4
-3
No files found.
sources/3.10/cifs_unicode.c
View file @
184bd032
...
...
@@ -290,7 +290,8 @@ int
cifsConvertToUTF16
(
__le16
*
target
,
const
char
*
source
,
int
srclen
,
const
struct
nls_table
*
cp
,
int
mapChars
)
{
int
i
,
j
,
charlen
;
int
i
,
charlen
;
int
j
=
0
;
char
src_char
;
__le16
dst_char
;
wchar_t
tmp
;
...
...
@@ -298,12 +299,11 @@ cifsConvertToUTF16(__le16 *target, const char *source, int srclen,
if
(
!
mapChars
)
return
cifs_strtoUTF16
(
target
,
source
,
PATH_MAX
,
cp
);
for
(
i
=
0
,
j
=
0
;
i
<
srclen
;
j
++
)
{
for
(
i
=
0
;
i
<
srclen
;
j
++
)
{
src_char
=
source
[
i
];
charlen
=
1
;
switch
(
src_char
)
{
case
0
:
put_unaligned
(
0
,
&
target
[
j
]);
goto
ctoUTF16_out
;
case
':'
:
dst_char
=
cpu_to_le16
(
UNI_COLON
);
...
...
@@ -350,6 +350,7 @@ cifsConvertToUTF16(__le16 *target, const char *source, int srclen,
}
ctoUTF16_out:
put_unaligned
(
0
,
&
target
[
j
]);
/* Null terminate target unicode string */
return
j
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment