Commits

Trammell Hudson committed dc69e0c

Use /usr/local/bin/pdf2ps

  • Participants
  • Parent commits d66e0ab

Comments (0)

Files changed (1)

     sprintf(buf + strlen(buf) + 1, "N%s\n", job_title);
     sprintf(buf + strlen(buf) + 1, "\002%d cfA%s%s\n", (int)strlen(buf), job_name, localhost);
     write(socket_descriptor, buf + strlen(buf) + 1, strlen(buf + strlen(buf) + 1));
+
     read(socket_descriptor, &lpdres, 1);
     if (lpdres) {
         fprintf(stderr, "Bad response from %s, %u\n", host, lpdres);
         {
             int l;
             while ((l = fread((char *)buf, 1, sizeof (buf), pjl_file)) > 0) {
-                write(socket_descriptor, (char *)buf, l);
+		write(socket_descriptor, buf, l);
             }
         }
     }
         sprintf(filename_ps, "%s.ps", file_basename);
 
         /* Execute the command pdf2ps to convert the pdf file to ps. */
-        sprintf(buf, "/usr/bin/pdf2ps %s %s", filename_pdf, filename_ps);
+        sprintf(buf, "/usr/local/bin/pdf2ps %s %s", filename_pdf, filename_ps);
         if (debug) {
             fprintf(stderr, "%s\n", buf);
         }