*** a/contrib/pg_stat_statements/pg_stat_statements.c
--- b/contrib/pg_stat_statements/pg_stat_statements.c
*************** generate_normalized_query(pgssJumbleStat
*** 2726,2732 ****
  		if (tok_len < 0)
  			continue;			/* ignore any duplicates */
  
! 		/* Copy next chunk, or as much as will fit */
  		len_to_wrt = off - last_off;
  		len_to_wrt -= last_tok_len;
  
--- 2726,2732 ----
  		if (tok_len < 0)
  			continue;			/* ignore any duplicates */
  
! 		/* Copy next chunk */
  		len_to_wrt = off - last_off;
  		len_to_wrt -= last_tok_len;
  
