[ofw] [Patches 5/26][Core] Adjust code to remove Prefast errors and warning

Smith, Stan stan.smith at intel.com
Wed Jun 22 10:49:53 PDT 2011


Same story as before....just fix the issue with strsafe.h and skip the NTDDI_WIN8 conditional?


-    strncpy_s(queue->name, NAME_LENGTH, name, NAME_LENGTH);
+#ifdef NTDDI_WIN8   
+    strncpy_s(queue->name, NAME_LENGTH, name, NAME_LENGTH);
+#else
+    strncpy(queue->name, name, NAME_LENGTH);
+#endif

>-----Original Message-----
>From: Alex Naslednikov [mailto:xalex at mellanox.co.il]
>Sent: Sunday, June 19, 2011 5:25 AM
>To: Alex Naslednikov; ofw at lists.openfabrics.org; Smith, Stan
>Subject: RE: [ofw] [Patches 5/26][Core] Adjust code to remove Prefast errors and warning
>
>
>
>-----Original Message-----
>From: Alex Naslednikov
>Sent: Sunday, June 19, 2011 3:25 PM
>To: Alex Naslednikov; 'ofw at lists.openfabrics.org'; 'Smith, Stan'
>Subject: [ofw] [Patches 5/26][Core] Adjust code to remove Prefast errors and warning
>
>Use safe functions only for Win8
>
>
>
>
>Alexander (XaleX) Naslednikov
>SW Networking Team
>Mellanox Technologies




More information about the ofw mailing list