changed %zu to %d in SVG generation, #535
Costa Tsaousis (ktsaou) committed
Jun 11, 2016 at 21:11 UTC
51f7287f1e3061296e309b000bddb3dddce33dc8
1 file changed
+9
-9
src/web_buffer_svg.c
+9
-9
@@ -549,24 +549,24 @@ void buffer_svg(BUFFER *wb, const char *label, calculated_number value, const ch
549
// svg template from:
550
// https://raw.githubusercontent.com/badges/shields/master/templates/flat-template.svg
551
buffer_sprintf(wb,
552
- "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"%zu\" height=\"20\">"
552
+ "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"%d\" height=\"20\">"
553
"<linearGradient id=\"smooth\" x2=\"0\" y2=\"100%%\">"
554
"<stop offset=\"0\" stop-color=\"#bbb\" stop-opacity=\".1\"/>"
555
"<stop offset=\"1\" stop-opacity=\".1\"/>"
556
"</linearGradient>"
557
"<mask id=\"round\">"
558
- "<rect width=\"%zu\" height=\"20\" rx=\"3\" fill=\"#fff\"/>"
558
+ "<rect width=\"%d\" height=\"20\" rx=\"3\" fill=\"#fff\"/>"
559
"</mask>"
560
"<g mask=\"url(#round)\">"
561
- "<rect width=\"%zu\" height=\"20\" fill=\"%s\"/>"
562
- "<rect x=\"%zu\" width=\"%zu\" height=\"20\" fill=\"%s\"/>"
563
- "<rect width=\"%zu\" height=\"20\" fill=\"url(#smooth)\"/>"
561
+ "<rect width=\"%d\" height=\"20\" fill=\"%s\"/>"
562
+ "<rect x=\"%d\" width=\"%d\" height=\"20\" fill=\"%s\"/>"
563
+ "<rect width=\"%d\" height=\"20\" fill=\"url(#smooth)\"/>"
564
"</g>"
565
"<g fill=\"#fff\" text-anchor=\"middle\" font-family=\"DejaVu Sans,Verdana,Geneva,sans-serif\" font-size=\"11\">"
566
- "<text x=\"%zu\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\">%s</text>"
567
- "<text x=\"%zu\" y=\"14\">%s</text>"
568
- "<text x=\"%zu\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\">%s</text>"
569
- "<text x=\"%zu\" y=\"14\">%s</text>"
566
+ "<text x=\"%d\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\">%s</text>"
567
+ "<text x=\"%d\" y=\"14\">%s</text>"
568
+ "<text x=\"%d\" y=\"15\" fill=\"#010101\" fill-opacity=\".3\">%s</text>"
569
+ "<text x=\"%d\" y=\"14\">%s</text>"
570
"</g>"
571
"</svg>",
572
total_width, total_width,