aboutsummaryrefslogtreecommitdiff
path: root/src/psycstore
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2015-09-04 16:57:30 +0000
committerGabor X Toth <*@tg-x.net>2015-09-04 16:57:30 +0000
commitb82bbde943667a432ede3d2407763a342dfb32a3 (patch)
tree343b30eda373dcfd934d785009a4c2a40a6a7050 /src/psycstore
parente99a4e43e5eaac90ddd9c344f1bb5bfbc4a1be0e (diff)
downloadgnunet-b82bbde943667a432ede3d2407763a342dfb32a3.tar.gz
gnunet-b82bbde943667a432ede3d2407763a342dfb32a3.zip
social: watch modifiers
Diffstat (limited to 'src/psycstore')
-rw-r--r--src/psycstore/psyc_util_lib.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/psycstore/psyc_util_lib.c b/src/psycstore/psyc_util_lib.c
index f6dd4e593..54ae626c5 100644
--- a/src/psycstore/psyc_util_lib.c
+++ b/src/psycstore/psyc_util_lib.c
@@ -590,9 +590,10 @@ transmit_notify_env (void *cls, uint16_t *data_size, void *data, uint8_t *oper,
590 590
591 if (name_size + tmit->mod->value_size <= *data_size) 591 if (name_size + tmit->mod->value_size <= *data_size)
592 { 592 {
593 *data_size = name_size + tmit->mod->value_size; 593 value_size = tmit->mod->value_size;
594 *data_size = name_size + value_size;
594 } 595 }
595 else 596 else /* full modifier does not fit in data, continuation needed */
596 { 597 {
597 value_size = *data_size - name_size; 598 value_size = *data_size - name_size;
598 tmit->mod_value = tmit->mod->value + value_size; 599 tmit->mod_value = tmit->mod->value + value_size;