git://wimlib.net
/
wimlib
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abd8714
)
win32_apply.c: simplify inode_longest_named_data_stream_spec()
author
Eric Biggers
<ebiggers3@gmail.com>
Sun, 29 Mar 2015 23:32:11 +0000
(18:32 -0500)
committer
Eric Biggers
<ebiggers3@gmail.com>
Sun, 29 Mar 2015 23:32:11 +0000
(18:32 -0500)
src/win32_apply.c
patch
|
blob
|
history
diff --git
a/src/win32_apply.c
b/src/win32_apply.c
index a662cbf33ea94d0f306cd1bf84f8e4c8d883b313..b326e182a5eb788f8827c31ec0ca5f8675052299 100644
(file)
--- a/
src/win32_apply.c
+++ b/
src/win32_apply.c
@@
-634,12
+634,12
@@
inode_longest_named_data_stream_spec(const struct wim_inode *inode)
const struct wim_inode_stream *strm = &inode->i_streams[i];
if (!stream_is_named_data_stream(strm))
continue;
- size_t len = utf16le_len_
byte
s(strm->stream_name);
+ size_t len = utf16le_len_
char
s(strm->stream_name);
if (len > max)
max = len;
}
if (max)
- max
= 1 + (max / sizeof(wchar_t))
;
+ max
+= 1
;
return max;
}