oga's tools
修訂 | 007aae5493cbf2bb145a085249498e067cb5b43f (tree) |
---|---|
時間 | 2014-01-04 18:12:26 |
作者 | oga <hyperoga@gmai...> |
Commiter | oga |
fix array size
@@ -225,7 +225,7 @@ int main(int a, char *b[]) | ||
225 | 225 | if (pt) { |
226 | 226 | *pt = '\0'; |
227 | 227 | } |
228 | - if (srcf) printf("char %s[%d] = {\n", buf, width[i]*height[i]-1); | |
228 | + if (srcf) printf("char %s[%d] = {\n", buf, width[i]*height[i]); | |
229 | 229 | for (hh = 0; hh < height[i]; hh++) { |
230 | 230 | if (srcf) printf(" "); |
231 | 231 | for (ww = 0; ww < width[i]; ww++) { |