diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-02-06 18:33:34 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-02-06 18:33:34 +0000 |
commit | 7e86f2f686334cb3db458b4585dfce9c1b712bc4 (patch) | |
tree | 88b4a0536faefcada96437e7cddd3a36cfdee0a4 /locale/strings2po.c | |
parent | b1564baed9db112cb1334027f1d141877d88fcf4 (diff) | |
download | cups-7e86f2f686334cb3db458b4585dfce9c1b712bc4.tar.gz |
Full sweep of all Clang warnings, plus some bug fixes for incorrect memcpy usage.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11558 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'locale/strings2po.c')
-rw-r--r-- | locale/strings2po.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/locale/strings2po.c b/locale/strings2po.c index 8df9059be..7e714b4b1 100644 --- a/locale/strings2po.c +++ b/locale/strings2po.c @@ -3,6 +3,14 @@ * * Convert Apple .strings file (UTF-16 BE text file) to GNU gettext .po files. * + * Copyright 2007-2014 by Apple Inc. + * + * These coded instructions, statements, and computer programs are the + * property of Apple Inc. and are protected by Federal copyright + * law. Distribution and use rights are outlined in the file "LICENSE.txt" + * which should have been included with this file. If this file is + * file is missing or damaged, see the license at "http://www.cups.org/". + * * Usage: * * strings2po filename.strings filename.po @@ -10,12 +18,6 @@ * Compile with: * * gcc -o strings2po strings2po.c - * - * Contents: - * - * main() - Convert .strings file to .po. - * read_strings() - Read a line from a .strings file. - * write_po() - Write a line to the .po file. */ #include <stdio.h> @@ -116,7 +118,7 @@ read_strings(FILE *strings, /* I - .strings file */ char *bufptr; /* Pointer into buffer */ - while (fgets(buffer, bufsize, strings)) + while (fgets(buffer, (int)bufsize, strings)) { if (buffer[0] != '\"') continue; |