Skip to content

strncpy length? #16

@yuxuebao

Description

@yuxuebao

struct2json\inc\s2jdef.h line93
strncpy((to_struct)->_element[index], from_json->valuestring,sizeof((to_struct)->_element)-1);
是不是应该是
strncpy((to_struct)->_element[index], from_json->valuestring,sizeof((to_struct)->_element[index])-1);
struct2json\inc\s2jdef.h line106 同样问题.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions