View | Details | Raw Unified | Return to issue 85381
Collapse All | Expand All

(-)dmake/make.c (-4 / +6 lines)
Lines 166-172 Link Here
166
      len=cell->len;
166
      len=cell->len;
167
#else
167
#else
168
      /* For cygwin with .WINPATH set the lenght of the converted
168
      /* For cygwin with .WINPATH set the lenght of the converted
169
       * filepaths might me longer. Extra checking is needed ... */
169
       * filepaths might be longer. Extra checking is needed ... */
170
      tpath = DO_WINPATH(cell->datum);
170
      tpath = DO_WINPATH(cell->datum);
171
      if( tpath == cell->datum ) {
171
      if( tpath == cell->datum ) {
172
	 len=cell->len;
172
	 len=cell->len;
Lines 181-199 Link Here
181
	     * rarely happen. */
181
	     * rarely happen. */
182
	    int p_offset = p - result;
182
	    int p_offset = p - result;
183
	    /* Get more than needed. */
183
	    /* Get more than needed. */
184
	    slen += slen + len-slen_rest + 128;
184
	    slen = slen + len - slen_rest + 128;
185
	    if((result = realloc( result, (unsigned)(slen*sizeof(char)) ) ) == NULL)
185
	    if((result = realloc( result, slen ) ) == NULL)
186
	       No_ram();
186
	       No_ram();
187
	    p = result + p_offset;
187
	    p = result + p_offset;
188
	 }
188
	 }
189
      }
189
      }
190
190
191
      slen_rest -= len;
192
#endif
191
#endif
193
192
194
      memcpy((void *)p, (void *)tpath, len);
193
      memcpy((void *)p, (void *)tpath, len);
195
      p += len;
194
      p += len;
196
      *p++ = ' ';
195
      *p++ = ' ';
196
197
      slen_rest = p - result;
198
197
      next = cell->next;
199
      next = cell->next;
198
      free_cell(cell);
200
      free_cell(cell);
199
   }
201
   }

Return to issue 85381