diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2022-10-28 04:00:00 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2022-10-29 11:57:20 +0200 |
commit | 8df721df25864f89772c58a4486314855bf1a37e (patch) | |
tree | 7c89253922a8f09b964876b438056e2655cc9062 /src/hyper/ReadBitmap.c | |
parent | 467b6fb9eeb12d064c1f6fa4d7f87638e49685ca (diff) | |
download | open-axiom-8df721df25864f89772c58a4486314855bf1a37e.tar.gz |
Fix some compiler warnings & buffer overflows
Diffstat (limited to 'src/hyper/ReadBitmap.c')
-rw-r--r-- | src/hyper/ReadBitmap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/hyper/ReadBitmap.c b/src/hyper/ReadBitmap.c index d1ada58c..ee8e89d2 100644 --- a/src/hyper/ReadBitmap.c +++ b/src/hyper/ReadBitmap.c @@ -58,7 +58,6 @@ HTReadBitmapFile(Display *display,int screen,char * filename, XImage *image; FILE *fd; char Line[256], Buff[256]; - int num_chars; char *ptr; int rch; int version; @@ -134,7 +133,6 @@ HTReadBitmapFile(Display *display,int screen,char * filename, (image)->bytes_per_line = chars_line = (*width + 7) / 8; file_chars_line = chars_line + padding; - num_chars = chars_line * (*height); file_chars = file_chars_line * (*height); (image)->data = (char *) halloc((image)->bytes_per_line * (image)->height, "Read Pixmap--Image data"); |