projects
/
blerg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finish tagging implementation for hash tags
[blerg.git]
/
tags.c
diff --git
a/tags.c
b/tags.c
index
d5cc48a
..
96e7378
100644
(file)
--- a/
tags.c
+++ b/
tags.c
@@
-23,8
+23,8
@@
int tag_scan(const char *author, const char *data, int len, uint64_t record) {
tag_scan_start:
if (data[i] == '#') {
if (n_tags == MAX_TAGS) {
tag_scan_start:
if (data[i] == '#') {
if (n_tags == MAX_TAGS) {
- fprintf(stderr, "Too many tags in message");
-
continue
;
+ fprintf(stderr, "Too many tags in message
\n
");
+
break
;
}
int start = ++i;
while (i < len && TAG_CHAR(data[i]) && (i - start < MAX_TAG_LENGTH)) {
}
int start = ++i;
while (i < len && TAG_CHAR(data[i]) && (i - start < MAX_TAG_LENGTH)) {