Attention is currently required from: Nico Huber, Edward O'Callaghan, Angel Pons.
3 comments:
File tests/init_shutdown.c:
Hmmm, what I hoped for doesn't work. I expected fnmatch() to […]
Ah ok, I understand. Thank you for explanation.
File tests/init_shutdown.c:
Um, no. If we'd decide to end the strings with a '\n' that would […]
Thank you for explanation, again! I removed +1 from length. After reading your comment, I tried to find more exact info on 0-termination in sysfs file, for some reasons it is harder than I thought :(
For this test, for the way linux_mtd written today, it works with or without +1, but that's probably a coincidence? I want to make it right.
File tests/init_shutdown.c:
Patch Set #10, Line 239: strncpy(buf, entry->data, data_len);
Just noticed: used like this, isn't it doing the same as memcpy()? […]
Oh great thank you! That was my question two patchsets ago, I noticed after few rounds of code review I had strncpy() in one place and memcpy() in the other. Now it is the same memcpy in both places!
>> It has one interesting trait: clearing the unused bytes of the buffer
This is helpful, and I missed this.
To view, visit change 56413. To unsubscribe, or for help writing mail filters, visit settings.