Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: third_party/yasm/patched-yasm/frontends/yasm/yasm-options.c

Issue 6170009: Update our yasm copy to yasm 1.1.0 (Part 1: yasm side)... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/yasm/patched-yasm/frontends/yasm/yasm-options.c
===================================================================
--- third_party/yasm/patched-yasm/frontends/yasm/yasm-options.c (revision 71129)
+++ third_party/yasm/patched-yasm/frontends/yasm/yasm-options.c (working copy)
@@ -28,7 +28,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <util.h>
-/*@unused@*/ RCSID("$Id: yasm-options.c 1825 2007-04-22 03:32:46Z peter $");
+#include <ctype.h>
+/*@unused@*/ RCSID("$Id: yasm-options.c 2248 2009-12-26 04:41:21Z peter $");
#include "yasm-options.h"
@@ -69,11 +70,16 @@
}
for (i = 0; i < nopts; i++) {
+ size_t optlen;
if (options[i].lopt &&
strncmp(&argv[0][2], options[i].lopt,
- strlen(options[i].lopt)) == 0) {
+ (optlen = strlen(options[i].lopt))) == 0) {
char *param;
+ char c = argv[0][2 + optlen];
+ if (c != '\0' && c != '=' && !isspace(c))
+ continue;
+
if (options[i].takes_param) {
param = strchr(&argv[0][2], '=');
if (!param) {
« no previous file with comments | « third_party/yasm/patched-yasm/frontends/yasm/yasm.c ('k') | third_party/yasm/patched-yasm/libyasm/bytecode.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698