X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fjavacomp.c;h=caff268a40cf13a38258c063a1b988107e9b3f64;hb=d90792110b23736fb629c7f3ee150d917e8e9e3a;hp=3e0ca1b96170445934ada893498d628ae9617764;hpb=1e4ece4ab9850fbfa88c9ec43ea518c7bc266792;p=gnulib.git diff --git a/lib/javacomp.c b/lib/javacomp.c index 3e0ca1b96..caff268a4 100644 --- a/lib/javacomp.c +++ b/lib/javacomp.c @@ -1,5 +1,5 @@ /* Compile a Java program. - Copyright (C) 2001-2003, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software; you can redistribute it and/or modify @@ -48,6 +48,7 @@ #include "clean-temp.h" #include "error.h" #include "xvasprintf.h" +#include "c-strstr.h" #include "gettext.h" #define _(str) gettext (str) @@ -572,7 +573,9 @@ is_envjavac_gcj (const char *javac) fclose (fp); goto failed; } - envjavac_gcj = (strstr (line, "gcj") != NULL); + /* It is safe to call c_strstr() instead of strstr() here; see the + comments in c-strstr.h. */ + envjavac_gcj = (c_strstr (line, "gcj") != NULL); fclose (fp);