File: fprint-arg-ruby.patch

package info (click to toggle)
dia2code 0.8.3-4.4
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: ansic: 5,682; sh: 716; makefile: 19
file content (16 lines) | stat: -rw-r--r-- 626 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Remove un-needed fprintf() argument without format specifier
Author: Hugh McMaster <hmc@debian.org>
Forwarded: not-needed
Last-Update: 2025-01-04

--- a/dia2code/generate_code_ruby.c
+++ b/dia2code/generate_code_ruby.c
@@ -174,7 +174,7 @@
                     if ( strlen(tmplist->key->comment) > 0 ) {
                         fprintf(outfile,"# %s\n",tmplist->key->comment);
                     } else {
-                        fprintf(outfile,"# XXX\n",tmplist->key->comment);
+                        fprintf(outfile,"# XXX\n");
                     }
 
                     if (tmplist->key->isabstract) {