Commit 36093059 authored by Petr Vandrovec's avatar Petr Vandrovec

Fix bigendian problems in ncpfs.

parent a34150f1
...@@ -341,6 +341,7 @@ void ncp_extract_file_info(void *structure, struct nw_info_struct *target) ...@@ -341,6 +341,7 @@ void ncp_extract_file_info(void *structure, struct nw_info_struct *target)
target->nameLen = *name_len; target->nameLen = *name_len;
memcpy(target->entryName, name_len + 1, *name_len); memcpy(target->entryName, name_len + 1, *name_len);
target->entryName[*name_len] = '\0'; target->entryName[*name_len] = '\0';
target->volNumber = le32_to_cpu(target->volNumber);
return; return;
} }
...@@ -475,7 +476,7 @@ ncp_get_known_namespace(struct ncp_server *server, __u8 volume) ...@@ -475,7 +476,7 @@ ncp_get_known_namespace(struct ncp_server *server, __u8 volume)
} }
result = NW_NS_DOS; result = NW_NS_DOS;
no_namespaces = ncp_reply_word(server, 0); no_namespaces = le16_to_cpu(ncp_reply_word(server, 0));
namespace = ncp_reply_data(server, 2); namespace = ncp_reply_data(server, 2);
while (no_namespaces > 0) { while (no_namespaces > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment