View | Details | Return to bug 21823
Collapse All | Expand All

(-)file_not_specified_in_diff (-7 / +19 lines)
Line  Link Here
0
-- fixincludes/fixincl.c
0
++ fixincludes/fixincl.c
Lines 528-534 Link Here
528
{
528
{
529
  int fd;
529
  int fd;
530
  FILE *pf;
530
  FILE *pf;
531
  char fname[MAXPATHLEN];
531
  char *fname = (char *) xmalloc (strlen (pz_dest_dir)
532
				  + strlen (pz_curr_file + find_base_len));
532
533
533
  sprintf (fname, "%s/%s", pz_dest_dir, pz_curr_file + find_base_len);
534
  sprintf (fname, "%s/%s", pz_dest_dir, pz_curr_file + find_base_len);
534
535
Lines 670-676 Link Here
670
                    const char* pz_file_path, 
671
                    const char* pz_file_path, 
671
                    const char* pz_file)
672
                    const char* pz_file)
672
{
673
{
673
  char z[ MAXPATHLEN ];
674
  char *z = (char *) xmalloc (strlen (pz_src_path)
675
			      + strlen (pz_file_path));
674
  char* pz;
676
  char* pz;
675
  sprintf (z, "%s/%s/", pz_src_path, pz_file_path);
677
  sprintf (z, "%s/%s/", pz_src_path, pz_file_path);
676
  pz = z + strlen ( z );
678
  pz = z + strlen ( z );
677
-- fixincludes/server.c
679
++ fixincludes/server.c
Lines 178-185 Link Here
178
server_setup (void)
178
server_setup (void)
179
{
179
{
180
  static int atexit_done = 0;
180
  static int atexit_done = 0;
181
  char buff [MAXPATHLEN + 1];
181
  char *buff;
182
  
182
  size_t buff_len = 1024;
183
183
  if (atexit_done++ == 0)
184
  if (atexit_done++ == 0)
184
    atexit (close_server);
185
    atexit (close_server);
185
  else
186
  else
Lines 192-198 Link Here
192
193
193
  fputs ("trap : 1\n", server_pair.pf_write);
194
  fputs ("trap : 1\n", server_pair.pf_write);
194
  fflush (server_pair.pf_write);
195
  fflush (server_pair.pf_write);
195
  getcwd (buff, MAXPATHLEN + 1);
196
197
  buff = (char *) xmalloc (buff_len);  
198
  while (1)
199
    {
200
      if (getcwd (buff, buff_len) == buff)
201
	break;
202
      buff_len *= 2;
203
      buff = (char *) xrealloc (buff, buff_len); 
204
    }
205
196
  p_cur_dir = xstrdup (buff);
206
  p_cur_dir = xstrdup (buff);
197
}
207
}
198
208

Return to bug 21823