about summary refs log tree commit diff
path: root/buildtools
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-08 18:56:56 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-11-08 18:56:56 +0000
commit0992ab9207d70f059986e73c4e3e4114dd9b0148 (patch)
treef968bdb2a007988bf7f55ad1ae9d4a7c9cbf15ea /buildtools
parent258661382fd87aaf31281c4817c9695d9cf2cae6 (diff)
downloadnetpbm-mirror-0992ab9207d70f059986e73c4e3e4114dd9b0148.tar.gz
netpbm-mirror-0992ab9207d70f059986e73c4e3e4114dd9b0148.tar.xz
netpbm-mirror-0992ab9207d70f059986e73c4e3e4114dd9b0148.zip
Release 10.35.12
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@120 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/libopt.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/buildtools/libopt.c b/buildtools/libopt.c
index 132f05f2..3dcb1f73 100644
--- a/buildtools/libopt.c
+++ b/buildtools/libopt.c
@@ -351,6 +351,8 @@ parse_filename(const char *  const filename,
     }
 }   
 
+
+
 static void
 parse_filepath(const char *  const filepath,
                const char ** const directory_p, 
@@ -453,9 +455,9 @@ processOneLibrary(const char *  const filepath,
    linker option string as a newly malloced null-terminated string at
    *optionsP.
 -----------------------------------------------------------------------------*/
-    const char *directory;
+    const char * directory;
         /* Directory component of 'filepath' */
-    const char *filename;
+    const char * filename;
         /* Filename component of 'filepath' */
 
     parse_filepath(filepath, &directory, &filename, errorP);
@@ -510,22 +512,18 @@ main(int argc, char **argv) {
         else if (strcmp(argv[arg], "-quiet") == 0)
             quiet = TRUE;
         else {
-            if (strlen(argv[arg]) > 200)
-                error = TRUE;
-            else {
-                const char * options;
-                processOneLibrary(argv[arg], runtime, explicit, 
-                                  &options, &error);
-                if (!error) {
-                    if (strlen(outputLine) + strlen(options) + 1 + 1 > 
-                        sizeof(outputLine))
-                        error = TRUE;
-                    else {
-                        strcat(outputLine, " ");
-                        strcat(outputLine, options);
-                    }
-                    strfree(options);
+            const char * options;
+            processOneLibrary(argv[arg], runtime, explicit, 
+                              &options, &error);
+            if (!error) {
+                if (strlen(outputLine) + strlen(options) + 1 + 1 > 
+                    sizeof(outputLine))
+                    error = TRUE;
+                else {
+                    strcat(outputLine, " ");
+                    strcat(outputLine, options);
                 }
+                strfree(options);
             }
         }
     }