/* remove the quotes, keep the '+' */
val = GNUNET_malloc (slen - 1);
val[0] = '+';
- memcpy (&val[1], &value[2], slen - 3);
+ GNUNET_memcpy (&val[1], &value[2], slen - 3);
val[slen - 2] = '\0';
}
else
/* remove the quotes, add a space */
val = GNUNET_malloc (slen);
val[0] = ' ';
- memcpy (&val[1], &value[1], slen - 2);
+ GNUNET_memcpy (&val[1], &value[1], slen - 2);
val[slen - 1] = '\0';
}
else
const char *value)
{
struct GNUNET_CONTAINER_MetaData **mm = scls;
-#if HAVE_EXTRACTOR_H
+#if HAVE_EXTRACTOR_H && HAVE_LIBEXTRACTOR
enum EXTRACTOR_MetaType type;
const char *typename;
const char *typename_i18n;
*/
/*tmp = GNUNET_STRINGS_to_utf8 (value, strlen (value), locale_charset ());*/
tmp = GNUNET_strdup (value);
-#if HAVE_EXTRACTOR_H
+#if HAVE_EXTRACTOR_H && HAVE_LIBEXTRACTOR
type = EXTRACTOR_metatype_get_max ();
while (type > 0)
{