Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
tme
0012-strdup-string-constant-since-tmesh-input.y...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0012-strdup-string-constant-since-tmesh-input.y-does-a-fr.patch of Package tme
From 2d1cfca2ffa5da58f38c6d70efd21dee2b557518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com> Date: Fri, 1 Nov 2024 16:08:49 +0100 Subject: [PATCH 12/12] strdup() string constant since tmesh-input.y does a free() on it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Klaus Kämpf <kkaempf@gmail.com> --- tmesh/tmesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmesh/tmesh.c b/tmesh/tmesh.c index b4ab4d8..e8f2a94 100644 --- a/tmesh/tmesh.c +++ b/tmesh/tmesh.c @@ -870,7 +870,7 @@ main(int argc, char **argv) input_stdin->_tmesh_input_buffer[sizeof(input_stdin->_tmesh_input_buffer) - 1] = '\0'; /* create our stdin io: */ - io.tmesh_io_name = "*stdin*"; + io.tmesh_io_name = strdup("*stdin*"); /* tmesh-input.y does a free() on tmesh_io_name */ io.tmesh_io_private = input_stdin; io.tmesh_io_input_line = 0; io.tmesh_io_getc = _tmesh_getc; -- 2.47.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor