Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

Corrected encoding extension arg parsing

luc4a03cf06e1d1
diff --git a/test/ViewImageTest.java b/test/ViewImageTest.java
index 84319969a..5ea3b4373 100755
--- a/test/ViewImageTest.java
+++ b/test/ViewImageTest.java
@@ -138,13 +138,13 @@ public class ViewImageTest {
/**
*
* @param args
- * main parameters : fourth item may contain extension
+ * main parameters : second item may contain extension
* @return extension to use for encoding
*/
private static String getEncodingExt(String args[]) {
String ext = DEFAULT_OUT_EXT;
- if (args != null && args.length > 3) {
- ext = args[3];
+ if (args != null && args.length > 1) {
+ ext = args[1];
}
return ext;
}