> 2. > I want to replace a dangerous use of strcpy. The cocci file is: > @@ > identifier acceptLanguageList, ptrLanguage; > @@ > - strcpy(acceptLanguageList[i],ptrLanguage[i]); > + > strlcpy(acceptLanguageList[i],ptrLanguage[i],sizeof(acceptLanguageList[i]));
You would probably want to declare i as an expression as well. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
