Release notes for 1.9.1
[blerg.git] / common / app.c
index 27dfb5f..55ec75a 100644 (file)
@@ -19,9 +19,11 @@ int parse_url_info(const char *url, struct url_info *info) {
        }
        if (len == 0)
                return 0;
-       memcpy(info->author, url, len);
-       info->author[len] = 0;
-       info->contents |= URL_INFO_AUTHOR;
+       if (len > MAX_TAG_LENGTH)
+               len = MAX_TAG_LENGTH;
+       memcpy(info->name, url, len);
+       info->name[len] = 0;
+       info->contents |= URL_INFO_NAME;
 
        if (c == NULL || c[1] == 0)
                return info->contents;