diff --git a/uusplt.c b/uusplt.c index a39af10..ee895e0 100644 --- a/uusplt.c +++ b/uusplt.c @@ -1,5 +1,9 @@ /* uusplt.c - Split concatenated uuencoded files into separate uue files */ -/* $Id: uusplt.c,v 1.2 1995/02/02 16:59:43 tundra Exp $ */ +/* $Id: uusplt.c,v 1.3 1995/02/06 23:22:43 tundra Exp $ */ +/* $Log: uusplt.c,v $ +/* Revision 1.3 1995/02/06 23:22:43 tundra +/* Changed to directly invoke uudecode via popen() +/* */ #include #include @@ -39,11 +43,10 @@ strcpy(nm, buf+l+1); l = strlen(nm); nm[l-1] = '\0'; - strcat(nm, ".uue"); - if ((fd = fopen(nm, "w")) == NULL) + if ((fd = popen("uudecode", "w")) == NULL) { - printf("Hosed File Open For %s!", nm); + printf("Hosed Pipe Open For %s!", nm); exit(); }