View | Details | Raw Unified
Collapse All | Expand All

(-) tuxnes-0.75.orig/emu.c (-4 / +4 lines)
 Lines 890-896    Link Here 
      len = strlen(palfile) + 1;
      len = strlen(palfile) + 1;
      if (! (buffer = malloc(len)))
      if (! (buffer = malloc(len)))
	{
	{
	  perror (__FUNCTION__ ": malloc");
	  perror ("loadpal: malloc");
	  return;
	  return;
	}
	}
      memcpy (buffer, palfile, len);
      memcpy (buffer, palfile, len);
 Lines 912-918    Link Here 
      len = strlen(filename) + 1;
      len = strlen(filename) + 1;
      if (! (buffer = malloc(len)))
      if (! (buffer = malloc(len)))
	{
	{
	  perror (__FUNCTION__ ": malloc");
	  perror ("loadpal: malloc");
	  return;
	  return;
	}
	}
      memcpy (buffer, filename, len);
      memcpy (buffer, filename, len);
 Lines 924-930    Link Here 
	return;
	return;
      if (!(palfile = malloc ((len = strlen (filename)) + 11)))
      if (!(palfile = malloc ((len = strlen (filename)) + 11)))
        {
        {
          perror (__FUNCTION__ ": malloc");
          perror ("loadpal: malloc");
          return;
          return;
        }
        }
      strcpy (palfile, filename);
      strcpy (palfile, filename);
 Lines 1602-1608    Link Here 
    if (! (basefilename = malloc(baseend - basestart + 1)))
    if (! (basefilename = malloc(baseend - basestart + 1)))
      {
      {
        perror (__FUNCTION__ ": malloc");
        perror ("main: malloc");
        exit (1);
        exit (1);
      }
      }