We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 同样问题.
The text was updated successfully, but these errors were encountered:
看着是的,copy 的长度限制应该是数组元素的长度
Sorry, something went wrong.
No branches or pull requests
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 同样问题.
The text was updated successfully, but these errors were encountered: