From 6a575b8900734a4640427416885e73c83af70736 Mon Sep 17 00:00:00 2001 From: Jamie Couture Date: Wed, 11 Jan 2012 22:38:49 -0500 Subject: use correct type for sizeof **L would have worked well too. Depending on the distribution sizeof *L may return 8 instead of 4. **L is preferable, but since we don't expect this datatype to change very often, sizeof int is less subtle and easier to understand. Signed-off-by: Jamie Couture --- ui-ssdiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ssdiff.c b/ui-ssdiff.c index 45770b1..0cff4b8 100644 --- a/ui-ssdiff.c +++ b/ui-ssdiff.c @@ -23,7 +23,7 @@ static void create_or_reset_lcs_table() int i; if (L != NULL) { - memset(*L, 0, sizeof(*L) * MAX_SSDIFF_SIZE); + memset(*L, 0, sizeof(int) * MAX_SSDIFF_SIZE); return; } -- cgit 1.4.1 IRC logger
summary refs log tree commit diff
Commit message (Expand)Author
2020-01-01Add option for custom where expression to scoopJune McEnroe
2020-01-01Document ENVIRONMENT in scoop(1)June McEnroe
2019-12-31Add before and after optionsJune McEnroe
2019-12-31Add scoop IRC output formatJune McEnroe
2019-12-31Add scoop output format optionJune McEnroe
2019-12-31Refactor scoop formatters and group colored outputJune McEnroe
2019-12-31Add strftime format string optionJune McEnroe
2019-12-31Refactor binding in scoopJune McEnroe
2019-12-31Add option to group events by contextJune McEnroe
2019-12-31Add missing includeJune McEnroe
2019-12-31Use standout mode for highlightingJune McEnroe
2019-12-31Rewrite scoop(1) argument descriptionsJune McEnroe
2019-12-31Color both nicks in a changeJune McEnroe
2019-12-31Implement nick-colored outputJune McEnroe
2019-12-31Only enable highlighting on terminal outputJune McEnroe
2019-12-31Set up pager pipeJune McEnroe
2019-12-30Normalize date inputJune McEnroe
2019-12-30Add initial rough version of scoopJune McEnroe
2019-12-30Join with USING wherever possibleJune McEnroe
2019-12-30Add -D flag to prospective scoop manualJune McEnroe
2019-12-30Order results by ID in outer query in litterboxJune McEnroe
2019-12-30Use X macro for Type enumJune McEnroe
2019-12-30Remove scoop -ABCJune McEnroe
2019-12-30Add limit option for litterbox's search query interfaceJune McEnroe