diff options
author | Matthias Kramm <kramm@quiss.org> | 2010-01-08 17:12:57 -0800 |
---|---|---|
committer | Matthias Kramm <kramm@quiss.org> | 2010-01-08 17:12:57 -0800 |
commit | 2391d7ae5d8a145a250a8b80ab8c93ba74eba030 (patch) | |
tree | 6ca008d111b444a66bb3289c954fba6796df08cb /lib/devices | |
parent | 05861649cece70d65e7ba84c3696039c0143ce9c (diff) |
fixed format warnings
Diffstat (limited to 'lib/devices')
-rw-r--r-- | lib/devices/pdf.c | 2 | ||||
-rw-r--r-- | lib/devices/render.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/devices/pdf.c b/lib/devices/pdf.c index bbbf9be9..9e6365b2 100644 --- a/lib/devices/pdf.c +++ b/lib/devices/pdf.c @@ -235,7 +235,7 @@ void pdf_drawchar(gfxdevice_t*dev, gfxfont_t*font, int glyphnr, gfxcolor_t*color int fontid = (int)(ptroff_t)gfxfontlist_getuserdata(i->fontlist, font->id); PDF_setfont(i->p, fontid, matrix->m00); char name[32]; - sprintf(name, "%c\0", glyphnr+32); + sprintf(name, "%c", glyphnr+32); if(fabs(matrix->tx - i->lastx) > 0.001 || matrix->ty != i->lasty) { PDF_show_xy2(i->p, name, strlen(name), matrix->tx, matrix->ty); diff --git a/lib/devices/render.c b/lib/devices/render.c index cdba4421..8e0ada0b 100644 --- a/lib/devices/render.c +++ b/lib/devices/render.c @@ -822,7 +822,7 @@ char*gfximage_asXPM(gfximage_t*img, int depth) int d= 256/depth; char*str = (char*)malloc(img->width*img->height*4 + 500 + 16*depth*depth*depth); char*p = str; - p+= sprintf(p, "static char *noname[] = {\n\"%d %d 262144 3\",\n"); + p+= sprintf(p, "static char *noname[] = {\n\"%d %d 262144 3\",\n", img->width, img->height); int r,g,b; for(r=0;r<depth;r++) for(g=0;g<depth;g++) |