www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/16/07:08:58

Date: Thu, 16 Dec 93 12:58:00 +0100
From: buers AT dg1 DOT chemie DOT uni-konstanz DOT de (Dieter Buerssner)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: bug in control.c

First off all thanks to DJ and whoever else was involved
in the work for 1.11

go32/control.c has a small bug (probably a typo), that will, if at
all, only show when the link feature of stubedit is used. 


Dieter


*** control.oc	Sun Dec  5 06:30:38 1993
--- control.c	Thu Dec 16 17:31:02 1993
***************
*** 810,816 ****
    if (stub_info.actual_file_to_run[0])
    {
      char *cp;
!     argv0_to_run = (char *)malloc(strlen(argv0_to_pass + 13));
      strcpy(argv0_to_run, argv0_to_pass);
      for (cp = argv0_to_run + strlen(argv0_to_run) - 1; cp > argv0_to_run; cp--)
        if (cp[-1] == '/' || cp[-1] == '\\' || cp[-1] == ':')
--- 810,816 ----
    if (stub_info.actual_file_to_run[0])
    {
      char *cp;
!     argv0_to_run = (char *)malloc(strlen(argv0_to_pass) + 13);
      strcpy(argv0_to_run, argv0_to_pass);
      for (cp = argv0_to_run + strlen(argv0_to_run) - 1; cp > argv0_to_run; cp--)
        if (cp[-1] == '/' || cp[-1] == '\\' || cp[-1] == ':')


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019