file.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) | file.c (c4039b29fe9637e1135912813f830994af4c867f) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Helper functions used by the EFI stub on multiple 4 * architectures. This should be #included by the EFI stub 5 * implementation files. 6 * 7 * Copyright 2011 Intel Corporation; author Matt Fleming 8 */ --- 89 unchanged lines hidden (view full) --- 98 break; 99 } 100 } 101 102 if (!found) 103 return 0; 104 105 /* Skip any leading slashes */ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Helper functions used by the EFI stub on multiple 4 * architectures. This should be #included by the EFI stub 5 * implementation files. 6 * 7 * Copyright 2011 Intel Corporation; author Matt Fleming 8 */ --- 89 unchanged lines hidden (view full) --- 98 break; 99 } 100 } 101 102 if (!found) 103 return 0; 104 105 /* Skip any leading slashes */ |
106 while (cmdline[i] == L'/' || cmdline[i] == L'\\') | 106 while (i < cmdline_len && (cmdline[i] == L'/' || cmdline[i] == L'\\')) |
107 i++; 108 109 while (--result_len > 0 && i < cmdline_len) { 110 efi_char16_t c = cmdline[i++]; 111 112 if (c == L'\0' || c == L'\n' || c == L' ') 113 break; 114 else if (c == L'/') --- 136 unchanged lines hidden --- | 107 i++; 108 109 while (--result_len > 0 && i < cmdline_len) { 110 efi_char16_t c = cmdline[i++]; 111 112 if (c == L'\0' || c == L'\n' || c == L' ') 113 break; 114 else if (c == L'/') --- 136 unchanged lines hidden --- |