summaryrefslogtreecommitdiff
path: root/app/tools/listxtp.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:41 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2025-09-20 19:19:41 +0200
commit63ec5715054be18ac4db5675e067b41c955d03b9 (patch)
tree42bb5764b05bd3bc5bffadb55f4375e6dce8a521 /app/tools/listxtp.c
parent6c1a798b0302034a7fdcaf93b8f014e2e458c2a0 (diff)
parente7d20cf352688bf717a01f4e6d9e6f497c2bea4c (diff)
Update upstream source from tag 'upstream/5.3.1Beta2'
Update to upstream version '5.3.1Beta2' with Debian dir 36e53756d97319b1944d0ea744717abc9326f697
Diffstat (limited to 'app/tools/listxtp.c')
-rw-r--r--app/tools/listxtp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/tools/listxtp.c b/app/tools/listxtp.c
index 93fd2e9..4f497d6 100644
--- a/app/tools/listxtp.c
+++ b/app/tools/listxtp.c
@@ -64,6 +64,7 @@ int
main( int argc, char **argv )
{
char buffer[ 512 ];
+ char buffer1[ 512 ];
int found;
DIR *d;
struct dirent *ent;
@@ -151,9 +152,9 @@ main( int argc, char **argv )
char *bp;
buffer[ strlen( buffer ) - 1 ] = '\0';
bp = buffer;
- sprintf( buffer, "%s (%s)", bp + strlen( CONTENTSCOMMAND ) + 1, ent->d_name );
- results[ cnt ] = malloc( strlen( buffer ) + 1 );
- strcpy( results[ cnt ], buffer );
+ sprintf( buffer1, "%s (%s)", bp + strlen( CONTENTSCOMMAND ) + 1, ent->d_name );
+ results[ cnt ] = malloc( strlen( buffer1 ) + 1 );
+ strcpy( results[ cnt ], buffer1 );
cnt++;
if( cnt == MAX_FILES ) {
fprintf( stderr, "Error: too many files\n" );