diff --git a/font.h b/font.h index 49e0b7a..77a7ae1 100644 --- a/font.h +++ b/font.h @@ -269,7 +269,7 @@ static char header_data_cmap[256][3] = { {255,255,255}, {255,255,255} }; -static char header_data[] = { +static char header_data[36000] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, diff --git a/optar.c b/optar.c index b7739ad..c6c9d13 100644 --- a/optar.c +++ b/optar.c @@ -16,7 +16,7 @@ #define HEIGHT (2*BORDER+DATA_HEIGHT+TEXT_HEIGHT) #define TEXT_HEIGHT 24 -static unsigned char ary[WIDTH*HEIGHT]; +static unsigned char ary[WIDTH * HEIGHT]; static unsigned char *file_label=(unsigned char *)""; /* The filename written in the file_label */ static char *output_filename; /* The output filename */ diff --git a/unoptar.c b/unoptar.c index 5cd6e76..afcead7 100644 --- a/unoptar.c +++ b/unoptar.c @@ -316,7 +316,7 @@ static double angle(double x, double y) { double deg; - if (abs(x)>abs(y)){ + if (fabs(x)>fabs(y)){ /* Horizontal */ deg=180/M_PI*asin(y); if (x<0) deg=180-deg;