X-Git-Url: https://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=ncurses%2Ftinfo%2Fstrings.c;h=03f59c24e9adb7346f27bc614d105b381dd8c458;hb=d1a029866f6d84087781eaa81de19949d8533426;hp=10ec6c8d8ac9f98a27b47823177c1fd4a543d17f;hpb=5c2245b6fc619f8d96ce940281dfbf13b5b8900b;p=ncurses.git diff --git a/ncurses/tinfo/strings.c b/ncurses/tinfo/strings.c index 10ec6c8d..03f59c24 100644 --- a/ncurses/tinfo/strings.c +++ b/ncurses/tinfo/strings.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 2000-2012,2017 Free Software Foundation, Inc. * + * Copyright 2020,2023 Thomas E. Dickey * + * Copyright 2000-2012,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -37,7 +38,7 @@ #include #include -MODULE_ID("$Id: strings.c,v 1.9 2017/08/26 13:16:11 tom Exp $") +MODULE_ID("$Id: strings.c,v 1.11 2023/05/27 20:13:10 tom Exp $") /**************************************************************************** * Useful string functions (especially for mvcur) @@ -94,7 +95,7 @@ _nc_str_null(string_desc * dst, size_t len) * Copy a descriptor */ NCURSES_EXPORT(string_desc *) -_nc_str_copy(string_desc * dst, string_desc * src) +_nc_str_copy(string_desc * dst, const string_desc * const src) { *dst = *src; return dst;