X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmulticast%2Ftest_multicast_2peers.c;h=325d814988c496ab6ee10e031bcf11f9f2640171;hb=99f858c66be3206f5660c9d031cd6e6345a1267d;hp=8ce4d585fcd4dc66bd9cc57b98ca01ccf6080271;hpb=990c536e0f1c4adce5ba49897e2084d6296fdafc;p=oweals%2Fgnunet.git diff --git a/src/multicast/test_multicast_2peers.c b/src/multicast/test_multicast_2peers.c index 8ce4d585f..325d81498 100644 --- a/src/multicast/test_multicast_2peers.c +++ b/src/multicast/test_multicast_2peers.c @@ -2,20 +2,18 @@ * This file is part of GNUnet * Copyright (C) 2013 GNUnet e.V. * - * GNUnet is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published - * by the Free Software Foundation; either version 3, or (at your - * option) any later version. + * GNUnet is free software: you can redistribute it and/or modify it + * under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, + * or (at your option) any later version. * * GNUnet is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. + * Affero General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with GNUnet; see the file COPYING. If not, write to the - * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - * Boston, MA 02110-1301, USA. + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . */ /** @@ -223,8 +221,11 @@ origin_notify (void *cls, void *data) { char text[] = "pong"; + *data_size = strlen(text)+1; - memcpy(data, text, *data_size); + GNUNET_memcpy (data, + text, + *data_size); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "origin sends (to all): %s\n", text);