Projects
home:Aloysius:branches:Extra
mbrola
txt2pho-gcc11.1.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File txt2pho-gcc11.1.patch of Package mbrola
From 2d1282c31ff3c76d0445dabd343e7a831368bddf Mon Sep 17 00:00:00 2001 From: GHPS <GHPS@users.noreply.github.com> Date: Tue, 15 Jun 2021 19:56:14 +0200 Subject: [PATCH] Update to GCC 11.1 fixed uninitialized spacer string in PP) Index: MBROLA-3.3/txt2pho-0.96/src/hposttra.cc =================================================================== --- MBROLA-3.3.orig/txt2pho-0.96/src/hposttra.cc +++ MBROLA-3.3/txt2pho-0.96/src/hposttra.cc @@ -166,7 +166,7 @@ Wordlist::Wordlist(TFile &infile) if (buffer[0] == '{') { w.text = strdup(buffer) ; - strncpy(w.wordclass, "COM", 3) ; + strncpy(w.wordclass, "COM", 4) ; w.wk = Unknown ; w.konstit = invalid ; w.satztyp = garnix ; @@ -254,7 +254,7 @@ Wordlist::Wordlist(char** lexlist, int l if (buffer[0] == '{') { w.text = strdup(buffer) ; - strncpy(w.wordclass, "COM", 3) ; + strncpy(w.wordclass, "COM", 4) ; w.wk = Unknown ; w.konstit = invalid ; w.pg_betonung = 0 ; @@ -300,7 +300,7 @@ Wordlist::Wordlist(char** lexlist, int l if (w.flag == 0) { w1.text = strdup(wklstring) ; - strncpy(w1.wordclass, "COM", 3) ; + strncpy(w1.wordclass, "COM", 4) ; w1.wk = Unknown ; w1.konstit = invalid ; w1.satztyp = garnix ; Index: MBROLA-3.3/txt2pho-0.96/src/preproc/PPFuncts.cc =================================================================== --- MBROLA-3.3.orig/txt2pho-0.96/src/preproc/PPFuncts.cc +++ MBROLA-3.3/txt2pho-0.96/src/preproc/PPFuncts.cc @@ -201,11 +201,11 @@ char* dnumeral_range(char* in) char* temp2 = new char[5] ; char* from, *to, *result; int range_type; - if (to = strchr (in, '-')) + if (to = strchr(in, '-')) { range_type = RANGE_LONG; } - else if (to = strchr (in, '/')) + else if (to = strchr(in, '/')) { range_type = RANGE_SMALL; } Index: MBROLA-3.3/txt2pho-0.96/src/preproc/PPInput.cc =================================================================== --- MBROLA-3.3.orig/txt2pho-0.96/src/preproc/PPInput.cc +++ MBROLA-3.3/txt2pho-0.96/src/preproc/PPInput.cc @@ -96,7 +96,7 @@ char PPInput::get_next_char(FILE* infile PPInput::PPInput(const char* i, const char* sp) { - strcpy(spacer, sp); + spacer = strdup(sp); if (strcmp(i, "-") == 0) in = stdin ; else
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.