diff options
Diffstat (limited to 'form/fld_dup.c')
| -rw-r--r-- | form/fld_dup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/form/fld_dup.c b/form/fld_dup.c index e195df958877..33cf073b934e 100644 --- a/form/fld_dup.c +++ b/form/fld_dup.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020 Thomas E. Dickey * + * Copyright 2020,2024 Thomas E. Dickey * * Copyright 1998-2010,2012 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -33,7 +33,7 @@ #include "form.priv.h" -MODULE_ID("$Id: fld_dup.c,v 1.18 2020/05/24 01:40:20 anonymous.maarten Exp $") +MODULE_ID("$Id: fld_dup.c,v 1.19 2024/11/30 21:40:55 tom Exp $") /*--------------------------------------------------------------------------- | Facility : libnform @@ -83,7 +83,7 @@ dup_field(FIELD *field, int frow, int fcol) size_t len; len = Total_Buffer_Size(New_Field); - if ((New_Field->buf = (FIELD_CELL *)malloc(len * 20))) + if ((New_Field->buf = (FIELD_CELL *)malloc(len * 20)) != NULL) { memcpy(New_Field->buf, field->buf, len); returnField(New_Field); |
