aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-09-16 15:22:20 +0000
committerFrederic Culot <calcurse@culot.org>2006-09-16 15:22:20 +0000
commit9c8c943c6de25333fc70a3aa7b387523c6e5ca62 (patch)
tree1fa72357be47460e6237be263109b69a8ae0dd92
parent63a78c7de13eac5704689b42b1be97dcc3f87929 (diff)
downloadcalcurse-9c8c943c6de25333fc70a3aa7b387523c6e5ca62.tar.gz
calcurse-9c8c943c6de25333fc70a3aa7b387523c6e5ca62.zip
apoint_check_next() updated
-rwxr-xr-xsrc/apoint.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/apoint.c b/src/apoint.c
index 52c60d9..d2f4c9c 100755
--- a/src/apoint.c
+++ b/src/apoint.c
@@ -1,4 +1,4 @@
-/* $calcurse: apoint.c,v 1.4 2006/09/14 15:08:08 culot Exp $ */
+/* $calcurse: apoint.c,v 1.5 2006/09/16 15:22:20 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -171,7 +171,8 @@ void apoint_delete_bynum(long start, unsigned num)
for (i = alist_p->root; i != 0; i = i->next) {
if (apoint_inday(i, start)) {
if (n == num) {
- need_check_notify = notify_same_item(i->start);
+ if (notify_bar())
+ need_check_notify = notify_same_item(i->start);
*iptr = i->next;
free(i->mesg);
free(i);
@@ -275,14 +276,7 @@ struct notify_app_s *apoint_check_next(struct notify_app_s *app, long start)
} else {
if (i->start > start) {
app->time = i->start;
- if (strlen(i->mesg) < NOTIFY_FIELD_LENGTH) {
- strncpy(app->txt, i->mesg,
- strlen(i->mesg) + 1);
- } else {
- strncpy(app->txt, i->mesg,
- NOTIFY_FIELD_LENGTH-3);
- strncat(app->txt, "..", 2);
- }
+ app->txt = mycpy(i->mesg);
app->got_app = 1;
}
}