summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Pamment <apamment@yandex.com>2019-02-10 13:31:01 +1000
committerAndrew Pamment <apamment@yandex.com>2019-02-10 13:31:01 +1000
commit01d1c2e9e17798f13181dd2b60187ef8b6eaf35d (patch)
treee45bdc4a3d6684c91d5a04908006c33cc3c26d6d
parentb48f62055b1a1e0e8300ef66685437383c2de84b (diff)
Destaddr and Origaddr mixed up
-rwxr-xr-x[-rw-r--r--]src/msglib/msglib_sq3.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/msglib/msglib_sq3.c b/src/msglib/msglib_sq3.c
index be2177e..e89d19b 100644..100755
--- a/src/msglib/msglib_sq3.c
+++ b/src/msglib/msglib_sq3.c
@@ -106,8 +106,8 @@ struct msg_headers *sq3_read_message_headers(int msgconf, int msgarea, struct us
msg->msgwritten = sqlite3_column_int(res, 4);
msg->msg_h = (uint32_t *)malloz(sizeof(uint32_t));
*(uint32_t *)(msg->msg_h) = sqlite3_column_int(res, 5);
- msg->oaddress = safe_strdup(sqlite3_column_text(res, 6));
- msg->daddress = safe_strdup(sqlite3_column_text(res, 7));
+ msg->oaddress = safe_strdup(sqlite3_column_text(res, 7));
+ msg->daddress = safe_strdup(sqlite3_column_text(res, 6));
msg->msgid = safe_strdup(sqlite3_column_text(res, 8));
msg->replyid = safe_strdup(sqlite3_column_text(res, 9));
msg->msg_no--;
@@ -386,8 +386,8 @@ struct msg_t *sq3_message_header(const char *db, int id) {
msg->msgwritten = sqlite3_column_int(res, 4);
msg->msg_h = (uint32_t *)malloz(sizeof(uint32_t));
*(uint32_t *)(msg->msg_h) = sqlite3_column_int(res, 5);
- msg->oaddress = safe_strdup(sqlite3_column_text(res, 6));
- msg->daddress = safe_strdup(sqlite3_column_text(res, 7));
+ msg->oaddress = safe_strdup(sqlite3_column_text(res, 7));
+ msg->daddress = safe_strdup(sqlite3_column_text(res, 6));
msg->msgid = safe_strdup(sqlite3_column_text(res, 8));
msg->replyid = safe_strdup(sqlite3_column_text(res, 9));
msg->msg_no--;
@@ -425,4 +425,4 @@ char *sq3_fetch_body(const char *db, int mid) {
sqlite3_close(dbase);
return body;
-} \ No newline at end of file
+}