MCPcopy Create free account
hub / github.com/coreboot/coreboot / parse_strings

Function parse_strings

payloads/coreinfo/coreboot_module.c:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static void parse_strings(unsigned char *ptr)
131{
132 struct cb_string *string = (struct cb_string *)ptr;
133 int index = string->tag - CB_TAG_VERSION;
134
135 strncpy(cb_info.strings[index], (const char *)string->string, 63);
136 cb_info.strings[index][63] = 0;
137}
138
139static void parse_serial(unsigned char *ptr)
140{

Callers 1

parse_headerFunction · 0.85

Calls 1

strncpyFunction · 0.50

Tested by

no test coverage detected