a little bla

This commit is contained in:
tth
2021-04-24 00:11:37 +02:00
parent 0f2b0ec916
commit 6d4df793da
2 changed files with 11 additions and 5 deletions
+3 -2
View File
@@ -23,6 +23,7 @@
static int nextpng, counter;
static char *destination;
static int chainfilter;
static int outtype;
/* and the classic global var */
extern int verbosity;
@@ -60,6 +61,7 @@ int single_push_picture(FloatImg *pimg)
{
int foo;
char line[1000], buff[100];
char *extension = ".png";
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p )\n", __func__, pimg);
@@ -71,8 +73,7 @@ if ('/' != line[strlen(line)-1]) {
strcat(line, "/");
}
// fprintf(stderr, " destdir = '%s'\n", line);
sprintf(buff, "%05d.png", nextpng);
sprintf(buff, "%05d.%s", nextpng, extension);
strcat(line, buff);
// fprintf(stderr, "writing %p to '%s'\n", pimg, line);