Sun Oct 20 21:07:43 2002 Michael Jennings (mej)
Fixed a double-free in libscream.c. Also some cleanups to the spec file, and I fixed some missing return statements in non-void functions. SVN revision: 6429
This commit is contained in:
parent
340755e956
commit
862a62b63c
|
@ -4869,3 +4869,9 @@ Sun Oct 13 01:27:51 2002 Michael Jennings (mej)
|
|||
Make sure it builds without Imlib2 so we don't have a repeat of last
|
||||
time.
|
||||
----------------------------------------------------------------------
|
||||
Sun Oct 20 21:07:43 2002 Michael Jennings (mej)
|
||||
|
||||
Fixed a double-free in libscream.c. Also some cleanups to the spec
|
||||
file, and I fixed some missing return statements in non-void
|
||||
functions.
|
||||
----------------------------------------------------------------------
|
||||
|
|
11
Eterm.spec
11
Eterm.spec
|
@ -4,7 +4,7 @@
|
|||
Summary: Enlightened terminal emulator
|
||||
Name: Eterm
|
||||
Version: 0.9.2
|
||||
Release: 0.1
|
||||
Release: 0.2
|
||||
Copyright: BSD
|
||||
Group: User Interface/X
|
||||
%if %{bzip}
|
||||
|
@ -30,11 +30,14 @@ have the Imlib2 library installed.
|
|||
%setup -a 1
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CFLAGS
|
||||
|
||||
# When using the configure macro, I also specify all the directory
|
||||
# macros I use for compatibility with older versions of the macro
|
||||
%configure --bindir=%{_bindir} --libdir=%{_libdir} --mandir=%{_mandir} \
|
||||
--datadir=%{_datadir} --sysconfdir=%{_sysconfdir} \
|
||||
--enable-multi-charset --enable-escreen
|
||||
--enable-multi-charset --enable-escreen --enable-auto-encoding
|
||||
make
|
||||
|
||||
%install
|
||||
|
@ -70,14 +73,14 @@ EOF
|
|||
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/X11/applnk/Utilities/Eterm.desktop
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
test -x /sbin/ldconfig && /sbin/ldconfig
|
||||
|
||||
if [ -d /usr/share/terminfo -a ! -f /usr/share/terminfo/E/Eterm ]; then
|
||||
tic -o/usr/share/terminfo $RPM_DOC_DIR/%{name}-%{version}/%{name}.ti || :
|
||||
fi
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
test -x /sbin/ldconfig && /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
|
|
@ -1674,7 +1674,7 @@ ns_rel_disp(_ns_sess * s, int d)
|
|||
x = s->dsps;
|
||||
}
|
||||
}
|
||||
ns_go2_disp(s, x->index);
|
||||
return ns_go2_disp(s, x->index);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1869,9 +1869,6 @@ ns_ren_disp(_ns_sess * s, int d, char *name)
|
|||
#endif
|
||||
}
|
||||
|
||||
if (i)
|
||||
FREE(i);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -1899,15 +1896,13 @@ ns_log_disp(_ns_sess * s, int d, char *logfile)
|
|||
int
|
||||
ns_tog_region(_ns_sess * s, _ns_disp * d)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
ns_go2_region(_ns_sess * s, _ns_disp * d, int n)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
|
||||
|
@ -1962,8 +1957,7 @@ ns_add_region(_ns_sess * s, _ns_disp * d, int after, char *name)
|
|||
int
|
||||
ns_rsz_region(_ns_sess * s, _ns_disp * d, int r, int w, int h)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -2009,36 +2003,31 @@ ns_one_region(_ns_sess * s, _ns_disp * d, int r)
|
|||
int
|
||||
ns_mov_region(_ns_sess * s, _ns_disp * d, int fm, int to)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
ns_ren_region(_ns_sess * s, _ns_disp * d, int r, char *name)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
ns_log_region(_ns_sess * s, _ns_disp * d, int r, char *logfile)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
ns_mon_region(_ns_sess * s, _ns_disp * d, int r)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
int
|
||||
ns_sbb_region(_ns_sess * s, _ns_disp * d, int r)
|
||||
{
|
||||
if (ns_magic_disp(&s, &d) == NS_FAIL)
|
||||
return NS_FAIL;
|
||||
return ns_magic_disp(&s, &d);
|
||||
}
|
||||
|
||||
|
||||
|
@ -2170,7 +2159,7 @@ ns_get_url(_ns_sess * s, int d)
|
|||
l = ((s->proto) ? strlen(s->proto) + 3 : 0) + strlen(s->user) + 1 + strlen(s->host) + 1 + 5 + 1 + ((s->rsrc) ? strlen(s->rsrc) : 0) + 7 + (s->name ? strlen(s->name) + 4 : 0) +
|
||||
1;
|
||||
|
||||
if ((u = malloc(l + 1))) {
|
||||
if ((u = MALLOC(l + 1))) {
|
||||
if (!s->escape) {
|
||||
esc[0] = '\0';
|
||||
} else if (s->escape < ' ') {
|
||||
|
@ -2449,6 +2438,7 @@ ns_mov_screen_disp(_ns_sess * s, int fm, int to)
|
|||
efuns->expire_buttons(s->userdef, n);
|
||||
|
||||
ns_upd_stat(s);
|
||||
return NS_SUCC;
|
||||
}
|
||||
|
||||
|
||||
|
@ -3062,10 +3052,14 @@ ns_parse_screen(_ns_sess * screen, int force, int width, char *p)
|
|||
_ns_parse pd[NS_MAX_DISPS];
|
||||
|
||||
p2 = &p[width - 1];
|
||||
if (*p2 == ' ') {
|
||||
while (p2 > p && *p2 == ' ') {
|
||||
status_blanks++;
|
||||
*(p2--) = '\0';
|
||||
} /* p2 now points behind last item */
|
||||
} else {
|
||||
*p2 = 0; /* make darn sure it's NUL-terminated */
|
||||
}
|
||||
|
||||
D_ESCREEN(("parse_screen: screen sends (%d) ::%s::\n", strlen(p), p));
|
||||
|
||||
|
@ -3186,7 +3180,7 @@ ns_parse_screen(_ns_sess * screen, int force, int width, char *p)
|
|||
if ((tmp = strcmp(disp->name, pd[r].name)) || /* upd display */
|
||||
(disp->flags != fl)) {
|
||||
if (tmp) {
|
||||
FREE(disp->name);
|
||||
/* Don't free disp->name; ns_inp_dial() already did! */
|
||||
if (!(disp->name = STRDUP(pd[r].name))) {
|
||||
FREE(p);
|
||||
return NS_FAIL;
|
||||
|
|
Loading…
Reference in New Issue