Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed a bug where quoted files weren't being unquoted correctly

  • Loading branch information...
commit 87dff506da30685080b67e715fa58c72abda66e4 1 parent 785f20e
@noname22 noname22 authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 dasm/src/parser.c
View
7 dasm/src/parser.c
@@ -164,9 +164,12 @@ char* UnquoteStr(Dasm* me, char* target, const char* str)
LAssertError(
(STARTSWITH(str, '"') && ENDSWITH(str, '"')) ||
(STARTSWITH(str, '\'') && ENDSWITH(str, '\'')),
- "Error parsing quoted string: %s", str);
+ "expected quoted string, got: %s (without quotes)."
+ " Did you mean \"%s\"?", str, str);
- return strncpy(target, str + 1, strlen(str) - 2);
+
+ target[0] = 0;
+ return strncat(target, str + 1, strlen(str) - 2);
}
uint16_t Assemble(Dasm* me, const char* ifilename, int addr, int depth)
Please sign in to comment.
Something went wrong with that request. Please try again.