This is an archive of the discontinued LLVM Phabricator instance.

[libc][obvious] fix tests using wrong size for string
ClosedPublic

Authored by michaelrj on Nov 7 2022, 2:04 PM.

Details

Summary

In the code
const char *str = "abc"
if you do sizeof(str) you get the size of the pointer, not the string.
This patch fixes that mistake.

Diff Detail

Event Timeline

michaelrj created this revision.Nov 7 2022, 2:04 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 7 2022, 2:04 PM
michaelrj requested review of this revision.Nov 7 2022, 2:04 PM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 7 2022, 2:04 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.