Mercurial > hg > octave-lyh > gnulib-hg
changeset 5687:78dca9b2cfa4
glibcsync
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Sat, 05 Mar 2005 13:56:37 +0000 |
parents | 8df3fb71fbbc |
children | 5421c00f20ab |
files | lib/iconvme.c |
diffstat | 1 files changed, 6 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/iconvme.c +++ b/lib/iconvme.c @@ -1,17 +1,17 @@ /* Recode strings between character sets, using iconv. Copyright (C) 2002, 2003, 2004, 2005 Free Software Foundation, Inc. - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2.1, or (at - your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. + GNU General Public License for more details. - You should have received a copy of the GNU Lesser General Public License along + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ @@ -67,12 +67,6 @@ size_t outbytes_remaining = outbuf_size - 1; /* -1 for NUL */ size_t err; int have_error = 0; - - if (1 < MB_LEN_MAX && SIZE_MAX / MB_LEN_MAX <= inbytes_remaining) - { - errno = ENOMEM; - return NULL; - } #endif if (strcmp (to_codeset, from_codeset) == 0)