photomosaics

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 203dabcbe4afeec4b4b6ce8c3f47e6ca65e3ee66
parent 39fe88c9a2f2276895329bf96fdc7cd4471bcd12
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Tue, 27 Dec 2022 08:10:27 -0600

Fixing use of uninitialized endptr. Kludgily choosing 400 for max size out of temporary lack of knowledge

Diffstat:
Mphotomosaics.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/photomosaics.c b/photomosaics.c @@ -118,7 +118,8 @@ int main(int argc, char **argv) { output_img_filename[0] = 0; ImageInfo *image_info, *new_image_info = NULL; float resize_factor = 0.0; - char *endptr; + char endptr[400]; + endptr[0] = 0; bool get_pixel_info = false; bool resize = false; bool splotch = false;