Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 353080 | Differences between
and this patch

Collapse All | Expand All

(-)x48-0.6.3.orig/src/debugger.c (-6 / +3 lines)
Lines 1919-1928 Link Here
1919
	      free (cl);
1919
	      free (cl);
1920
              cl = (char *) 0;
1920
              cl = (char *) 0;
1921
            }
1921
            }
1922
	  if (old_line)
1922
	  cl = strdup (old_line == NULL ? "(null)" : old_line);
1923
	    cl = strcpy ((char *) malloc (strlen (old_line)), old_line);
1924
	  else
1925
	    cl = strcpy ((char *) malloc (strlen ("(null)")), "(null)");
1926
	}
1923
	}
1927
      else
1924
      else
1928
	{
1925
	{
Lines 1936-1943 Link Here
1936
	      free (old_line);
1933
	      free (old_line);
1937
              old_line = (char *) 0;
1934
              old_line = (char *) 0;
1938
	    }
1935
	    }
1939
	  cl = strcpy ((char *) malloc (strlen (rl)), rl);
1936
	  cl = strdup (rl);
1940
	  old_line = strcpy ((char *) malloc (strlen (rl)), rl);
1937
	  old_line = strdup (rl);
1941
#ifdef HAVE_READLINE
1938
#ifdef HAVE_READLINE
1942
	  add_history (rl);
1939
	  add_history (rl);
1943
#endif
1940
#endif

Return to bug 353080