mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-24 17:18:51 +02:00
sharutils: fix gcc2 build.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user