Changeset 1661 for zzuf


Ignore:
Timestamp:
Jan 13, 2007, 11:59:07 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Fixed -c behaviour. Sometimes apps open "$PWD/file" when asked to simply open "file" (eg. eog).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r1660 r1661  
    380380static char *merge_file(char *regex, char *file)
    381381{
    382     char *newfile = malloc(1 + 2 * strlen(file) + 1 + 1), *tmp = newfile;
    383 
     382    char *newfile = malloc(5 + 2 * strlen(file) + 1 + 1), *tmp = newfile;
     383
     384    *tmp++ = '(';
    384385    *tmp++ = '^';
     386    *tmp++ = '|';
     387    *tmp++ = '/';
     388    *tmp++ = ')';
    385389    while(*file)
    386390    {
Note: See TracChangeset for help on using the changeset viewer.