r13170: Remove some dependencies on -1 implying the size of pstring
[ira/wip.git] / source / auth / ntlmssp / ntlmssp_parse.c
index e8c08bf650dc25ca80b51051f2d21ebd8fa65768..4fbfede350d0e1e77c5e1fcffaf0774789142b0a 100644 (file)
@@ -238,9 +238,8 @@ BOOL msrpc_parse(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob,
                                        return False;
 
                                if (0 < len1) {
-                                       pull_string(p, blob->data + ptr, sizeof(p), 
-                                                   len1, 
-                                                   STR_UNICODE|STR_NOALIGN);
+                                       pull_ucs2(p, blob->data + ptr, sizeof(p), 
+                                                   len1, STR_NOALIGN);
                                        (*ps) = talloc_strdup(mem_ctx, p);
                                        if (!(*ps)) {
                                                return False;
@@ -269,9 +268,8 @@ BOOL msrpc_parse(TALLOC_CTX *mem_ctx, const DATA_BLOB *blob,
                                        return False;   
 
                                if (0 < len1) {
-                                       pull_string(p, blob->data + ptr, sizeof(p), 
-                                                   len1, 
-                                                   STR_ASCII|STR_NOALIGN);
+                                       pull_ascii(p, blob->data + ptr, sizeof(p), 
+                                                   len1, STR_NOALIGN);
                                        (*ps) = talloc_strdup(mem_ctx, p);
                                        if (!(*ps)) {
                                                return False;