mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Increased strings because of buffer overflow for long file names.
This commit is contained in:
parent
2c84e3f27b
commit
89f48c21e0
@ -24143,7 +24143,7 @@ int get_thumb_name(const char *file_name, char *thumb_name, int size, int index)
|
|||||||
|
|
||||||
void call_image_magick(LOGBOOK * lbs)
|
void call_image_magick(LOGBOOK * lbs)
|
||||||
{
|
{
|
||||||
char str[256], cmd[256], file_name[256], thumb_name[256], subdir[256];
|
char str[1024], cmd[1024], file_name[256], thumb_name[256], subdir[256];
|
||||||
int cur_width, cur_height, new_size, cur_rot, new_rot, thumb_status;
|
int cur_width, cur_height, new_size, cur_rot, new_rot, thumb_status;
|
||||||
|
|
||||||
if (!isparam("req") || !isparam("img")) {
|
if (!isparam("req") || !isparam("img")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user