calendar

BSD calendar reimplementation
git clone https://git.ce9e.org/calendar.git

commit
8005de4c7e6e60af6d00fb33bad373c9a7c6eb58
parent
85161fc38353cfdec124625e7b88fbdc034daf19
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-06-04 11:32
fix overflow in tests

Diffstat

M test.c 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/test.c b/test.c

@@ -91,7 +91,7 @@ bool tpl_comp(struct tpl a, struct tpl b) {
   91    91 }
   92    92 
   93    93 struct tpl parse_date_mut(const char *s) {
   94    -1 	char *_s = malloc(strlen(s));
   -1    94 	char *_s = malloc(strlen(s) + 1);
   95    95 	strcpy(_s, s);
   96    96 	struct tpl tpl = parse_date(_s);
   97    97 	free(_s);