*** /home/paschal/hpoj-0.8/apps/cmdline/ptal-hp.c Wed Aug 1 04:31:01 2001 --- apps/cmdline/ptal-hp.c Thu Sep 27 15:15:28 2001 *************** *** 67,83 **** /* Make sure the string is null-terminated in the right place. */ buffer[len]=0; ! #define PRINT_BRACKETS 0 ! ! printf( ! #if PRINT_BRACKETS ! "<" ! #endif ! "%s" ! #if PRINT_BRACKETS ! ">" ! #endif ! "\n",buffer+start); } int handleDevice(ptalDevice_t dev,int arg,int argc,char **argv) { --- 67,73 ---- /* Make sure the string is null-terminated in the right place. */ buffer[len]=0; ! printf("%s\n",buffer+start); } int handleDevice(ptalDevice_t dev,int arg,int argc,char **argv) { *************** *** 1809,1815 **** /* Hopefully we'll get an end-of-page * right after this! */ ! } else if (uploadState!=ACTIVE) { PTAL_LOG_ERROR("Unexpected upload state=%d!\n", uploadState); goto abort; --- 1799,1806 ---- /* Hopefully we'll get an end-of-page * right after this! */ ! } else if (uploadState!=ACTIVE && ! !prematureStateChange) { PTAL_LOG_ERROR("Unexpected upload state=%d!\n", uploadState); goto abort;