lynx-dev
[Top][All Lists]
Advanced

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

lynx-dev [patch] last malloc nibble, I swear


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

diff -u 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

--- LYUtils.c.orig      Tue Dec 15 17:11:08 1998
+++ LYUtils.c   Tue Dec 15 17:12:11 1998
@@ -6281,6 +6281,8 @@
 #else
        static char *display_putenv_command;
        display_putenv_command = malloc(strlen(new_display) + 12);
+       if (!display_putenv_command)
+           outofmem(__FILE__, "LYsetXDisplay");
 
        sprintf(display_putenv_command, "DISPLAY=%s", new_display);
        putenv(display_putenv_command);

reply via email to

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