Felipe Oliveira Carvalho
c3f88060db
No OOM in dict_alloc() and rettv_dict_alloc()
2014-06-16 01:31:34 -03:00
Justin M. Keyes
8bbeb4b480
Merge #743 'Replace vim_strncpy with strlcpy'
2014-06-13 18:09:08 -04:00
Douglas Schneider
d430f039d1
Replace vim_strncpy calls: message.c
2014-06-13 18:08:22 -04:00
Douglas Schneider
1e1750fdce
Replace vim_strncpy calls: eval.c
2014-06-13 18:08:22 -04:00
Douglas Schneider
004b45d6f5
Replace vim_strncpy calls: screen.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
03b25f782b
Replace vim_strncpy calls: ex_docmd.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
9f4e10b62e
Replace vim_strncpy calls: version.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
fe4a7fc7e7
Replace vim_strncpy calls: spell.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
bdf79dd619
Replace vim_strncpy calls: syntax.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
43f5a5ef65
Replace vim_strncpy calls: tag.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
1a1725765c
Replace vim_strncpy calls: buffer.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
a81f2dbe6e
Replace vim_strncpy calls: misc1.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
2a0784731d
Replace vim_strncpy calls: hardcopy.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
656408e479
Replace vim_strncpy calls: quickfix.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
4e81698988
Replace vim_strncpy calls: if_cscope.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
e554ea2036
Replace vim_strncpy calls: regexp.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
4517eb80be
Replace vim_strncpy calls: fold.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
a501d7a940
Replace vim_strncpy calls: ex_getln.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
9a1a2b9a59
Replace vim_strncpy calls: menu.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
30f5cd6c30
Replace vim_strncpy calls: option.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
2179a03111
Replace vim_strncpy calls: path.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
260c327fb5
Replace vim_strncpy calls: memline.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
4e2cbddaaa
Replace vim_strncpy calls: os/fs.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
7249729af6
Replace vim_strncpy calls: os/users.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
52c46d2cad
Replace vim_strncpy calls: mark.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
4a8ac58596
Replace vim_strncpy calls: ops.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
a328bcfb47
Replace vim_strncpy calls: misc2.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
d6e9b3caad
Replace vim_strncpy calls: os_unix.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
c37d4c5d12
Replace vim_strncpy calls: file_search.c
2014-06-13 18:08:21 -04:00
Douglas Schneider
e412da2954
Replace vim_strncpy calls: getchar.c
2014-06-13 18:08:20 -04:00
Douglas Schneider
f9596aa201
Replace vim_strncpy calls: add STRLCPY
2014-06-13 18:08:20 -04:00
Will Stamper
5b3b3fd3ed
spelling fixes #827
2014-06-12 20:26:35 -04:00
Justin M. Keyes
168575f3f7
Merge #774 'Move defines from vim.h to other header files'
2014-06-12 20:13:52 -04:00
Brandon Coleman
1ff8ed7b82
removed whitespace from ROOT_UID define.
2014-06-12 01:20:36 -05:00
Pavel Platto
18b64c99cc
Remove unnecessary (int) casts and fix style
2014-06-12 01:20:36 -05:00
Brandon Coleman
7f21665673
move/remove W_* macros
...
move W_ENDCOL to screen.c
remove the rest of the W_* macros
2014-06-12 01:20:36 -05:00
Brandon Coleman
7cdbca7789
move SST_* defines to syntax_defs
2014-06-12 01:20:36 -05:00
Brandon Coleman
eade8e283e
move FINDFILE_* defines to file_search.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
1bd6912023
move EW_* defines to path.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
da5e8526d1
move WILD_* defines to ex_getln.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
b3ac402695
move VALID_* defines to buffer_defs.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
e41284df21
move HL_* variables to syntax.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
ebd412681e
move values for find_pattern_in_path() to search.h
2014-06-12 01:20:36 -05:00
Brandon Coleman
bb53536d6e
move update_screen() flags to screen.h
2014-06-12 01:20:36 -05:00
Sahat Yalkabov
284a38a065
SVG coverage badge #821
2014-06-12 01:45:21 -04:00
Justin M. Keyes
bbd75cee82
Merge #804 'Coverity fix resource leaks 1b'
2014-06-12 01:41:12 -04:00
Nicolas Hillegeer
70f28d938c
coverity/13685: silence NUL-termnation fp
...
It was a false positive, but it can't hurt to "fix" it.
Original warning:
CID 13685 (#1 of 1): Buffer not null terminated (BUFFER_SIZE)
6. buffer_size: Calling strncpy with a source string whose length (4 chars)
is greater than or equal to the size argument (4) will fail to
null-terminate b0p->b0_version.
2014-06-12 01:41:03 -04:00
Nicolas Hillegeer
1a031af233
coverity/13770: add_keyword(), mark as false pos.
...
Also cleaned up the function a little bit.
2014-06-12 01:41:03 -04:00
Nicolas Hillegeer
ebbd87b0be
coverity/62615: fix leak in write_reg_contents_ex
...
Coverity detected a memory leak caused by not free'ing the value returned by
get_expr_line_src (basically vim_strsave(expr_line)). Replaced the copying
with direct manipulation of expr_line, since that also happens in other
parts of the codebase.
NOTE: I'm aware that this has different behaviour than vim_strnsave, namely
vim_strnsave always allocates `len` bytes, even if the string is shorter. I
don't see how that behaviour is helpful here though.
2014-06-12 01:41:03 -04:00
Nicolas Hillegeer
731761715a
coverity/62617: fix leak in set_string_default
...
Also constified the arguments. The double casts for the `xstrdup` are ugly
but `vim_strsave` doesn't take `const` arguments for now so I couldn't keep
that.
2014-06-12 01:41:03 -04:00