ABOK # 1402
A bend. Also known as a reef knot.
The two ropes need to be the same length or else they'll slip.
There have probably been more lives lost as a result of using a Square Knot as a bend (to tie two ropes together) than from the failure of any other half dozen knots combined. (ABOK page 258).