GUACAMOLE-1174: Correct logic detecting truncation of appended parameter.

The previous implementation passed `length - str_len` to `snprintf()`,
yet compared the return value to `length`. This is incorrect, as
`length` is not the buffer size provided to `snprintf()`.
1 file changed