Changeset 67a731 in git


Ignore:
Timestamp:
May 19, 1998, 6:07:45 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
3d40e9c77b67af8262c10ff618c95463f017eb14
Parents:
13186eeed93079165a3d0e9fb0120a8950d99cef
Message:
* fixed bug in #ifdef WINNT


git-svn-id: file:///usr/local/Singular/svn/trunk@1882 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/find_exec.c

    r13186e r67a731  
    9696/* for winnt under msdos, cwd is implicetyly in the path */
    9797#ifdef WINNT
    98     if (strlen(getenv("SHELL")) < 1)
     98    p = getenv("SHELL");
     99    if (p == NULL || strlen(p < 2))
    99100    {
    100       /* we are under msdos */
    101       extra = (char*) AllocL(strlen(search) + 3);
     101      /* we are under msdos display */
     102      extra = (char*) AllocL((search != NULL ? strlen(search) : 0) + 3);
    102103      sprintf(extra, ".:");
    103       strcat(extra, search);
     104      if (search != NULL) strcat(extra, search);
    104105      search = extra;
    105106    }
Note: See TracChangeset for help on using the changeset viewer.