Ticket #20393: pstoedit-rrdtool.diff
File pstoedit-rrdtool.diff, 498 bytes (added by jwb@…, 15 years ago) |
---|
-
cppcomp.
old new 235 235 static inline void strncpy_s(char * de, size_t de_size, const char * so, size_t count) { 236 236 const size_t sourcelen = strlen(so); 237 237 size_t tobecopied = sourcelen < count ? sourcelen : count; 238 if ( tobecopied < de_size ) {238 if ( tobecopied <= de_size ) { 239 239 while (so && *so && (tobecopied > 0) ) { 240 240 *de = *so; ++de; ++so; --tobecopied; 241 241 } // does not copy final 0