Mercurial > dovecot > original-hg > dovecot-1.2
changeset 3990:e2e6919c6c4d HEAD
LF wasn't sent at the end of all commands.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 07 Feb 2006 10:01:15 +0200 |
parents | e93e39326ae1 |
children | 0c26c7f25b9c |
files | src/lib-dict/dict-client.c |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c Sun Feb 05 20:00:15 2006 +0200 +++ b/src/lib-dict/dict-client.c Tue Feb 07 10:01:15 2006 +0200 @@ -392,7 +392,7 @@ ret = -1; else { t_push(); - query = t_strdup_printf("%c%u", !ctx->failed ? + query = t_strdup_printf("%c%u\n", !ctx->failed ? DICT_PROTOCOL_CMD_COMMIT : DICT_PROTOCOL_CMD_ROLLBACK, ctx->id); @@ -425,7 +425,7 @@ if (ctx->connect_counter == dict->connect_counter) { t_push(); - query = t_strdup_printf("%c%u", DICT_PROTOCOL_CMD_ROLLBACK, + query = t_strdup_printf("%c%u\n", DICT_PROTOCOL_CMD_ROLLBACK, ctx->id); (void)client_dict_send_query(dict, query); t_pop(); @@ -445,7 +445,8 @@ return; t_push(); - query = t_strdup_printf("%c%u\t%s\t%s", DICT_PROTOCOL_CMD_SET, ctx->id, + query = t_strdup_printf("%c%u\t%s\t%s\n", + DICT_PROTOCOL_CMD_SET, ctx->id, dict_client_escape(key), dict_client_escape(value)); if (client_dict_send_query(dict, query) < 0) @@ -454,7 +455,7 @@ } static void client_dict_atomic_inc(struct dict_transaction_context *_ctx, - const char *key, long long diff) + const char *key, long long diff) { struct client_dict_transaction_context *ctx = (struct client_dict_transaction_context *)_ctx; @@ -465,7 +466,8 @@ return; t_push(); - query = t_strdup_printf("%c%u\t%s\t%lld", DICT_PROTOCOL_CMD_ATOMIC_INC, + query = t_strdup_printf("%c%u\t%s\t%lld\n", + DICT_PROTOCOL_CMD_ATOMIC_INC, ctx->id, dict_client_escape(key), diff); if (client_dict_send_query(dict, query) < 0) ctx->failed = TRUE;