Hi,

this bit of code in Hugs has been a consistant obstical:
static Void local fileInput(nm,len)     
String nm;                         
Long   len; {                          
#if USE_PREPROCESSOR && (defined(HAVE_POPEN) || defined(HAVE__POPEN))
    if (preprocessor) {
        char cmd[100];
        strncpy(cmd,preprocessor,100);
        strncat(cmd," ",100);
        strncat(cmd,nm,100);
        cmd[99] = '\0'; /* paranoia */
        inputStream = popen(cmd,"r");
    } else {
        inputStream = fopen(nm,"r");
    }
#else


Could we use "500" instead of "100"?  its so easy for the user to 
build up a command larger than 100


byron


Reply via email to