Garbage from previous response was sometimes displayed in debug output.
goto error;
}
- if (wmnotify_infos.debug) {
- printf("%s", rx_buffer);
- }
-
/*
* Converting the last CRLF into a LF followed by a NULL termination
* character.
rx_buffer[len - 2] = '\n';
rx_buffer[len - 1] = '\0';
+ if (wmnotify_infos.debug) {
+ printf("%s", rx_buffer);
+ }
+
/*
* Check the Server Completion Response returned by the IMAP4 server.
* There are currently three Server Completion Responses codes: