size
authorChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 11:02:51 +0000 (11:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 11 Jun 2010 11:02:51 +0000 (11:02 +0000)
src/util/common_logging.c

index c6350a9ae13fc66b952eb985d8d0bdbbc13d210d..79e31246aec274e5f429a95287b8c0a8bdf6ff34 100644 (file)
@@ -392,7 +392,7 @@ mylog (enum GNUNET_ErrorType kind,
   last_bulk_repeat = 0;
   last_bulk_kind = kind;
   last_bulk_time = GNUNET_TIME_absolute_get ();
-  strncpy (last_bulk_comp, comp, sizeof (last_bulk_comp));
+  strncpy (last_bulk_comp, comp, COMP_TRACK_SIZE);
   output_message (kind, comp, date, buf);
   free (buf);
 }