/* webcollage-helper --- scales and pastes one image into another
- * xscreensaver, Copyright (c) 2002 Jamie Zawinski <jwz@jwz.org>
+ * xscreensaver, Copyright (c) 2002, 2003 Jamie Zawinski <jwz@jwz.org>
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
perror (buf);
exit (1);
}
- fprintf (stderr, " %ldK\n", (st.st_size + 1023) / 1024);
+ fprintf (stderr, " %luK\n", (st.st_size + 1023) / 1024);
}
fclose (out);
"\r\n";
char comment[sizeof(fmt) + 100];
strftime (comment, sizeof(comment)-1, fmt, tm);
- jpeg_write_marker (cinfo, JPEG_COM, comment, strlen (comment));
+ jpeg_write_marker (cinfo, JPEG_COM,
+ (unsigned char *) comment,
+ strlen (comment));
}