projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changelog for 1.8.2
[blerg.git]
/
common
/
app.c
diff --git
a/common/app.c
b/common/app.c
index
9d3e6cf
..
55ec75a
100644
(file)
--- a/
common/app.c
+++ b/
common/app.c
@@
-1,3
+1,6
@@
+/* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
+ * BSD-style license. Please see the COPYING file for details.
+ */
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@
-16,9
+19,11
@@
int parse_url_info(const char *url, struct url_info *info) {
}
if (len == 0)
return 0;
}
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;
if (c == NULL || c[1] == 0)
return info->contents;