memory leak warning strcpy
Warning 1 warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_ WARNINGS. See online help for details. D:\Visual Studio WebApplications \test memory leak 1\test memory leak 1\test memory leak 1.cpp
how to remove this warning........ .
User Profile
Collapse
-
remove memory leak from this function strcpy
Syed Muhammad Ammar: memory leak error at strcpy function.....Code:node_pointer *structures = new node_pointer; char buf[] = "dsdsdsdsdsds\0"; structures->common_fields = buf; strcpy(structures>common_fields,"aaaaasfd\0"); cout<<structures->common_fields;
Last edited by zmbd; Feb 23 '13, 10:15 PM. Reason: [Z{Please use the <CODE/> formatting button to format your posted code and SQL}]
No activity results to display
Show More
Leave a comment: