From patchwork Fri Jul 23 07:04:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 113851 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6N74VFX009505 for ; Fri, 23 Jul 2010 07:04:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751386Ab0GWHEa (ORCPT ); Fri, 23 Jul 2010 03:04:30 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:63710 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751122Ab0GWHE3 (ORCPT ); Fri, 23 Jul 2010 03:04:29 -0400 Received: by pzk26 with SMTP id 26so2861930pzk.19 for ; Fri, 23 Jul 2010 00:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:to:cc:subject :date:message-id:x-mailer; bh=Zp8ngz5MUiriNXpnt4U/9jQLvPDpwxxrnNH/Y1OSI3M=; b=WUqXU5vg3kS4bvMCnoJH6BddzWhjUlCWqsc4wEislkGudPVPXN69FEf6EkmCTJwQTJ jh9HhhNcwt8AG7DoG2+pFNnoIwNqhQT9jyZOuZFHXb27peizKgcaN5JsSELpF5EVQ1F4 QuNcRUT+Pjjeh1PNWBrb06Q4w0QVCiiyu+6t8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=QSElKoBm2L0qczmvUhRjLKUzUoxxkPakiDm+wQz6ZuqDpA3MWxo6e/Rl8DmBmO55dl /UQGPCOmuTmt+dUqUQy8cAZwzY49NyeV5Xwrpk2z0nuE8TFqX9h5eyHGP/9ACCTWsYdS eyU3Cg3iM9BO8/q3OwSvA4rqwvDxCd1mZYz9o= Received: by 10.142.172.1 with SMTP id u1mr3613470wfe.137.1279868667817; Fri, 23 Jul 2010 00:04:27 -0700 (PDT) Received: from earth ([75.85.182.25]) by mx.google.com with ESMTPS id 23sm11393685wfa.22.2010.07.23.00.04.25 (version=SSLv3 cipher=RC4-MD5); Fri, 23 Jul 2010 00:04:26 -0700 (PDT) Received: by earth (sSMTP sendmail emulation); Fri, 23 Jul 2010 00:04:14 -0700 From: Stephen Boyd To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Michal Marek , Nir Tzachar Subject: [PATCH] nconfig: Fix segfault when help contains special characters Date: Fri, 23 Jul 2010 00:04:14 -0700 Message-Id: <1279868654-15743-1-git-send-email-bebarino@gmail.com> X-Mailer: git-send-email 1.7.2.rc3.57.g77b5b Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 23 Jul 2010 07:04:31 +0000 (UTC) diff --git a/scripts/kconfig/nconf.gui.c b/scripts/kconfig/nconf.gui.c index 115edb4..a9d9344 100644 --- a/scripts/kconfig/nconf.gui.c +++ b/scripts/kconfig/nconf.gui.c @@ -226,7 +226,7 @@ void fill_window(WINDOW *win, const char *text) int len = get_line_length(line); strncpy(tmp, line, min(len, x)); tmp[len] = '\0'; - mvwprintw(win, i, 0, tmp); + mvwprintw(win, i, 0, "%s", tmp); } }