FreeBSD Bugzilla – Attachment 135894 Details for
Bug 180957
sysutils/xcdroast cannot recognise correct version of cdda2wav
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
cdda2wav_version.patch
cdda2wav_version.patch (text/x-patch), 1.46 KB, created by
Gerard Seibert
on 2013-07-31 11:25:46 UTC
(
hide
)
Description:
cdda2wav_version.patch
Filename:
MIME Type:
Creator:
Gerard Seibert
Created:
2013-07-31 11:25:46 UTC
Size:
1.46 KB
patch
obsolete
>diff -urNad xcdroast-0.98+0alpha16~/src/io.c xcdroast-0.98+0alpha16/src/io.c >--- xcdroast-0.98+0alpha16~/src/io.c 2008-08-21 15:11:40.000000000 +0200 >+++ xcdroast-0.98+0alpha16/src/io.c 2009-12-29 22:54:08.571188849 +0100 >@@ -10062,6 +10062,7 @@ > > gint check_version_cdda2wav(gchar *match, gchar *found) { > gchar line[MAXLINE]; >+gchar vline[MAXLINE]; > gchar ver[MAXLINE]; > FILE *fpin; > gchar *p; >@@ -10076,32 +10077,38 @@ > } > > strcpy(line,""); >+ strcpy(vline,""); > for (;;) { > if (fgets(line,MAXLINE,fpin) == NULL) > break; > dodebug(10,"got: %s",line); >+ >+ /* only get first line */ >+ if (strcmp(vline,"") == 0) { >+ strncpy(vline, line, MAXLINE); >+ } > } > > if (pclose(fpin) == -1) { > g_error("pclose error\n"); > } > >- if (strcmp(line,"") == 0 || strstr(line,"sh:") != NULL) { >+ if (strcmp(vline,"") == 0 || strstr(vline,"sh:") != NULL) { > /* failed to open - permission denied */ > return 2; > } > >- /* now line contains the version string of cdda2wav */ >+ /* now vline contains the version string of cdda2wav */ > /* try to extract the version number */ > >- p = strstr(line,"version"); >+ p = strstr(vline,"version"); > if (p != NULL) { > p = strtok(p+8, " _"); > if (p != NULL) { > strcpy(ver,p); > } > } else { >- p = strstr(line,"cdda2wav"); >+ p = strstr(vline,"cdda2wav"); > if (p != NULL) { > p = strtok(p+9, " "); > if (p != NULL) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 180957
: 135894