summaryrefslogtreecommitdiff
path: root/sysutils/testdisk/files/patch-src::intrface.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/testdisk/files/patch-src::intrface.c')
-rw-r--r--sysutils/testdisk/files/patch-src::intrface.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/testdisk/files/patch-src::intrface.c b/sysutils/testdisk/files/patch-src::intrface.c
new file mode 100644
index 000000000000..a142ab77a0d8
--- /dev/null
+++ b/sysutils/testdisk/files/patch-src::intrface.c
@@ -0,0 +1,23 @@
+diff -ruw src/intrface.c src/intrface.c
+--- src/intrface.c 2004-03-16 11:13:01.000000000 +0100
++++ src/intrface.c 2004-03-30 17:19:00.000000000 +0200
+@@ -788,9 +788,6 @@
+ int done=0;
+ va_list ap;
+ WINDOW *window;
+- va_start(ap,_format);
+- window=*(WINDOW**)ap;
+- va_end(ap);
+ struct MenuItem menuBuffer[]=
+ {
+ { 'P', "Previous",""},
+@@ -806,6 +803,9 @@
+ { 0, NULL, NULL }
+ };
+ char options[20];
++ va_start(ap,_format);
++ window=va_arg(ap,WINDOW*);
++ va_end(ap);
+ if(nbr_lines<=DUMP_MAX_LINES)
+ {
+ strncpy(options,"Q",sizeof(options));