projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
sidebar.c
diff --git
a/sidebar.c
b/sidebar.c
index
5df3fd8
..
bdfcd6d
100644
(file)
--- a/
sidebar.c
+++ b/
sidebar.c
@@
-79,7
+79,7
@@
static char *shortened_hierarchy (char *box, int maxlen)
if (last_dot) {
++last_dot;
if (last_dot) {
++last_dot;
- new_box =
safe
_malloc (maxlen + 1);
+ new_box =
mem
_malloc (maxlen + 1);
new_box[0] = box[0];
for (i = 1, j = 1; j < maxlen && i < len; ++i) {
if (strchr (SidebarBoundary, box[i])) {
new_box[0] = box[0];
for (i = 1, j = 1; j < maxlen && i < len; ++i) {
if (strchr (SidebarBoundary, box[i])) {
@@
-225,7
+225,7
@@
int make_sidebar_entry (char* box, int idx, size_t len)
addnstr (entry, len);
if (shortened)
addnstr (entry, len);
if (shortened)
-
FREE
(&box);
+
mem_free
(&box);
return (1);
}
return (1);
}