Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/citrus Add parentheses around a misleading string c...



details:   https://anonhg.NetBSD.org/src/rev/98ef9775524f
branches:  trunk
changeset: 747184:98ef9775524f
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Sep 05 06:44:27 2009 +0000

description:
Add parentheses around a misleading string constant concatenation,
from (my own, very old) PR 36064.

diffstat:

 lib/libc/citrus/citrus_iconv.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r aa3107958faf -r 98ef9775524f lib/libc/citrus/citrus_iconv.c
--- a/lib/libc/citrus/citrus_iconv.c    Sat Sep 05 06:18:55 2009 +0000
+++ b/lib/libc/citrus/citrus_iconv.c    Sat Sep 05 06:44:27 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_iconv.c,v 1.7 2008/07/25 14:05:25 christos Exp $        */
+/*     $NetBSD: citrus_iconv.c,v 1.8 2009/09/05 06:44:27 dholland Exp $        */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_iconv.c,v 1.7 2008/07/25 14:05:25 christos Exp $");
+__RCSID("$NetBSD: citrus_iconv.c,v 1.8 2009/09/05 06:44:27 dholland Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -107,7 +107,7 @@
        char *p, path[PATH_MAX];
 
        /* iconv.dir path */
-       snprintf(path, (size_t)PATH_MAX, "%s/" _CITRUS_ICONV_DIR, curdir);
+       snprintf(path, (size_t)PATH_MAX, ("%s/" _CITRUS_ICONV_DIR), curdir);
 
        /* lookup db */
        cp = p = _lookup_simple(path, key, linebuf, linebufsize,



Home | Main Index | Thread Index | Old Index