Skip to content
Snippets Groups Projects
  • Arseny Kapoulkine's avatar
    208e2cf0
    Change PUGI__SNPRINTF to use _countof for MSVC · 208e2cf0
    Arseny Kapoulkine authored
    The macro only works correctly when the input argument is an array with
    a statically known size - pointers or arrays decayed to pointers won't
    work silently.
    
    While this is unlikely to surface issues that aren't caught in
    tests/code review, use _countof for MSVC to prevent such code from
    compiling.
    208e2cf0
    History
    Change PUGI__SNPRINTF to use _countof for MSVC
    Arseny Kapoulkine authored
    The macro only works correctly when the input argument is an array with
    a statically known size - pointers or arrays decayed to pointers won't
    work silently.
    
    While this is unlikely to surface issues that aren't caught in
    tests/code review, use _countof for MSVC to prevent such code from
    compiling.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.