First page Back Continue Last page Overview Graphics

Advarsler, uddrag: 432

432 Suspicious argument to malloc -- The following pattern was detected:

malloc( strlen(e+1) )

where e is some expression. This is suspicious because it closely resembles the commonly used pattern:

malloc( strlen(e)+1 )

If you really intended to use the first pattern then an equivalent expression that will not raise this error is:

malloc( strlen(e)-1 )