summaryrefslogtreecommitdiff
path: root/src/analysis/db/items/comment.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-24 07:41:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-24 07:41:10 (GMT)
commit1de9967e2a13baca3df50b02903900e36cee64ae (patch)
tree336d03677806193399b6c1628720941cd96868eb /src/analysis/db/items/comment.c
parentb7347c96930027fc11b9c5038157f972d58a41bf (diff)
Fixed various copy/paste mistakes in the database protocol.
Diffstat (limited to 'src/analysis/db/items/comment.c')
-rw-r--r--src/analysis/db/items/comment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index 15d541b..50522d9 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -465,7 +465,7 @@ static bool g_db_comment_unpack(GDbComment *comment, packed_buffer *pbuf)
if (result)
{
- result = extend_packed_buffer(pbuf, &tmp32, sizeof(uint32_t), true);
+ result = extract_packed_buffer(pbuf, &tmp32, sizeof(uint32_t), true);
comment->flags = tmp32;
}
@@ -474,13 +474,13 @@ static bool g_db_comment_unpack(GDbComment *comment, packed_buffer *pbuf)
if (result)
{
- result = extend_packed_buffer(pbuf, &tmp8, sizeof(uint8_t), true);
+ result = extract_packed_buffer(pbuf, &tmp8, sizeof(uint8_t), true);
comment->inlined = tmp8;
}
if (result)
{
- result = extend_packed_buffer(pbuf, &tmp8, sizeof(uint8_t), true);
+ result = extract_packed_buffer(pbuf, &tmp8, sizeof(uint8_t), true);
comment->repeatable = tmp8;
}