sharutils: fix gcc2 build.

This commit is contained in:
Jerome Duval
2015-12-08 20:48:39 +00:00
parent eb7ff0722d
commit eae7d97dcf
2 changed files with 14 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
From 1cc78ef9ae5f3dd70980064338945500cb5b2b22 Mon Sep 17 00:00:00 2001
From 0edd0c857858745b74c21ddd6d9663baa5663eed Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Tue, 2 Jun 2015 17:09:25 +0000
Subject: Haiku patch
@@ -42,7 +42,7 @@ index 0621c99..18d103a 100644
#if HAVE_LOCALE_H
#else
diff --git a/src/uuencode.c b/src/uuencode.c
index c651798..907da87 100644
index c651798..704ffef 100644
--- a/src/uuencode.c
+++ b/src/uuencode.c
@@ -64,6 +64,8 @@ static const char cright_years_z[] =
@@ -54,6 +54,15 @@ index c651798..907da87 100644
#if HAVE_LOCALE_H
#else
# define setlocale(Category, Locale)
@@ -251,7 +253,7 @@ process_opts (int argc, char ** argv, int * mode)
if (HAVE_OPT(ENCODE_FILE_NAME))
{
size_t nmlen = strlen (output_name);
- size_t bfsz = nmlen + (nmlen / 3) + 4;;
+ size_t bfsz = nmlen + (nmlen / 3) + 4;
char * p = malloc (bfsz);
if (p == NULL)
fserr (UUENCODE_EXIT_FAILURE, "malloc", _("file name"));
--
1.8.3.4
2.2.2