Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1ca7087e
Commit
1ca7087e
authored
Aug 14, 2016
by
Luis de Bethencourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
befs: fix typos in linuxvfs.c
Signed-off-by:
Luis de Bethencourt
<
luisbg@osg.samsung.com
>
parent
4c7df645
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
fs/befs/linuxvfs.c
fs/befs/linuxvfs.c
+6
-8
No files found.
fs/befs/linuxvfs.c
View file @
1ca7087e
...
...
@@ -491,13 +491,10 @@ static int befs_symlink_readpage(struct file *unused, struct page *page)
}
/*
* UTF-8 to NLS charset
convert routine
* UTF-8 to NLS charset convert routine
*
*
* Changed 8/10/01 by Will Dyson. Now use uni2char() / char2uni() rather than
* the nls tables directly
* Uses uni2char() / char2uni() rather than the nls tables directly
*/
static
int
befs_utf2nls
(
struct
super_block
*
sb
,
const
char
*
in
,
int
in_len
,
char
**
out
,
int
*
out_len
)
...
...
@@ -585,8 +582,9 @@ befs_nls2utf(struct super_block *sb, const char *in,
wchar_t
uni
;
int
unilen
,
utflen
;
char
*
result
;
/* There're nls characters that will translate to 3-chars-wide UTF-8
* characters, a additional byte is needed to save the final \0
/*
* There are nls characters that will translate to 3-chars-wide UTF-8
* characters, an additional byte is needed to save the final \0
* in special cases */
int
maxlen
=
(
3
*
in_len
)
+
1
;
...
...
@@ -625,7 +623,7 @@ befs_nls2utf(struct super_block *sb, const char *in,
return
i
;
conv_err:
befs_error
(
sb
,
"Name using char
ecter set %s contains a chare
cter that "
befs_error
(
sb
,
"Name using char
acter set %s contains a chara
cter that "
"cannot be converted to unicode."
,
nls
->
charset
);
befs_debug
(
sb
,
"<--- %s"
,
__func__
);
kfree
(
result
);
...
...
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