此警告意味着将常数字符串用作可能修改该字符串内容的函数的参数。
This warning indicates the use of a constant string as an argument to a function that might modify the contents of that string.
这可以通过以下方法来避免:将常数字符串存储在某个本地数组中,然后将该数组用作函数的参数。
This can be avoided by storing the constant string into a local array and then using the array as the argument to the function.
因为编译器在静态只读内存中分配常数字符串,所以,尝试修改该内存会导致访问冲突和随机崩溃。
Because the compiler allocates constant strings in a static read-only memory, any attempts to modify it cause access violations and random crashes.
应用推荐