Explorar o código

fix bad `fmt`

blueloveTH hai 1 semana
pai
achega
b89ebd4cca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/public/CodeExecution.c

+ 1 - 1
src/public/CodeExecution.c

@@ -22,7 +22,7 @@ static bool _py_compile(CodeObject* out,
     SourceData_ src = SourceData__rcnew(source, filename, mode, is_dynamic);
     SourceData_ src = SourceData__rcnew(source, filename, mode, is_dynamic);
     Error* err = pk_compile(src, out);
     Error* err = pk_compile(src, out);
     if(err) {
     if(err) {
-        py_exception(tp_SyntaxError, err->msg);
+        py_exception(tp_SyntaxError, "%s", err->msg);
         py_BaseException__stpush(NULL, &vm->unhandled_exc, err->src, err->lineno, NULL);
         py_BaseException__stpush(NULL, &vm->unhandled_exc, err->src, err->lineno, NULL);
         PK_DECREF(src);
         PK_DECREF(src);