diff src/term.c @ 28616:6ff407067190 v8.2.4832

patch 8.2.4832: passing zero instead of NULL to a pointer argument Commit: https://github.com/vim/vim/commit/fc78a0369e0d371a1a85d07045ff25d8695e8f8c Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Apr 26 22:11:38 2022 +0100 patch 8.2.4832: passing zero instead of NULL to a pointer argument Problem: Passing zero instead of NULL to a pointer argument. Solution: Use NULL. (closes https://github.com/vim/vim/issues/10296)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Apr 2022 23:15:02 +0200
parents a54564337e89
children daad4c7b39be
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -4505,7 +4505,9 @@ is_mouse_topline(win_T *wp)
 #endif
 
 /*
- * Put "string[new_slen]" in typebuf, or in "buf[bufsize]" if "buf" is not NULL.
+ * If "buf" is NULL put "string[new_slen]" in typebuf; "buflen" is not used.
+ * If "buf" is not NULL put "string[new_slen]" in "buf[bufsize]" and adjust
+ * "buflen".
  * Remove "slen" bytes.
  * Returns FAIL for error.
  */
@@ -4691,7 +4693,7 @@ handle_version_response(int first, int *
     if (version > 20000)
 	version = 0;
 
-    // Figure out more if the reeponse is CSI > 99 ; 99 ; 99 c
+    // Figure out more if the response is CSI > 99 ; 99 ; 99 c
     if (first == '>' && argc == 3)
     {
 	int need_flush = FALSE;
@@ -4836,7 +4838,7 @@ handle_version_response(int first, int *
 	if (*T_8U != NUL && write_t_8u_state == MAYBE)
 	    // Did skip writing t_8u, a complete redraw is needed.
 	    redraw_later_clear();
-	write_t_8u_state = OK;  // can otuput t_8u now
+	write_t_8u_state = OK;  // can output t_8u now
 
 	// Only set 'ttymouse' automatically if it was not set
 	// by the user already.