X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=34ee36edbc03bfb45c44cd6f3a3b85368857b673;hb=a11eb994c38b1ef41ea05b56736f70cc396e0ff8;hp=8a2b3aabfa46497ad32f2a9f2679ac111c5716b2;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index 8a2b3aa..34ee36e 100644 --- a/imap/util.c +++ b/imap/util.c @@ -1,21 +1,12 @@ /* + * Copyright notice from original mutt: * Copyright (C) 1996-8 Michael R. Elkins * Copyright (C) 1996-9 Brandon Long * Copyright (C) 1999-2002 Brendan Cully - * - * 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 of the License, 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 General Public License for more details. - * - * 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, USA. + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ /* general IMAP utility functions */ @@ -495,7 +486,7 @@ void imap_unmunge_mbox_name (char *s) buf = safe_strdup (s); if (buf) { imap_utf7_decode (&buf); - strncpy (s, buf, strlen (s)); + strncpy (s, buf, mutt_strlen (s)); } FREE (&buf);