comparison src/syntax.c @ 2768:c5e47b752f07 v7.3.160

updated for version 7.3.160 Problem: Unsafe string copying. Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead of strcat().
author Bram Moolenaar <bram@vim.org>
date Mon, 11 Apr 2011 16:56:35 +0200
parents d72d709f0e18
children 30b7cde21940
comparison
equal deleted inserted replaced
2767:9d6d058f0ebb 2768:c5e47b752f07
8574 for (i = 0; hl_attr_table[i] != 0; ++i) 8574 for (i = 0; hl_attr_table[i] != 0; ++i)
8575 { 8575 {
8576 if (iarg & hl_attr_table[i]) 8576 if (iarg & hl_attr_table[i])
8577 { 8577 {
8578 if (buf[0] != NUL) 8578 if (buf[0] != NUL)
8579 STRCAT(buf, ","); 8579 vim_strcat(buf, (char_u *)",", 100);
8580 STRCAT(buf, hl_name_table[i]); 8580 vim_strcat(buf, (char_u *)hl_name_table[i], 100);
8581 iarg &= ~hl_attr_table[i]; /* don't want "inverse" */ 8581 iarg &= ~hl_attr_table[i]; /* don't want "inverse" */
8582 } 8582 }
8583 } 8583 }
8584 } 8584 }
8585 8585