lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev [patch] another minor malloc nibble


From: John Bley
Subject: lynx-dev [patch] another minor malloc nibble
Date: Tue, 15 Dec 1998 17:16:10 -0500 (EST)

In diff -u format against 2.8.2dev9

-- 
John Bley - address@hidden
Duke '99 - English/Computer Science
  Since English is a mess, it maps well onto the problem space,
  which is also a mess, which we call reality.     - Larry Wall

--- LYMainLoop.c.orig   Tue Dec 15 17:06:33 1998
+++ LYMainLoop.c        Tue Dec 15 17:08:44 1998
@@ -4399,6 +4399,9 @@
                    *cp = '\0';
                toolbar = (char *)malloc(strlen(curdoc.address) +
                                         strlen(LYToolbarName) + 2);
+               if (!toolbar)
+                   outofmem(__FILE__, "mainloop");
+
                sprintf(toolbar, "%s#%s", curdoc.address, LYToolbarName);
                if (cp)
                    *cp = '#';

reply via email to

[Prev in Thread] Current Thread [Next in Thread]