add copyright, fix gcc warning

pull/16/head
Ryan Tharp 6 years ago
parent 16c56ff04b
commit 99761ad2c7

@ -1,6 +1,7 @@
/** /**
* The MIT License (MIT) * The MIT License (MIT)
* Copyright (c) <2015> <carriez.md@gmail.com> * Copyright (c) <2015> <carriez.md@gmail.com>
* Copyright (c) <2018> <rtharp@customwebapps.com>
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to * of this software and associated documentation files (the "Software"), to
@ -156,7 +157,7 @@ namespace ini
Parser::err(const char *s) Parser::err(const char *s)
{ {
char buf[256]; char buf[256];
sprintf(buf, "%s on line #%d", s, ln_); sprintf(buf, "%s on line #%lu", s, ln_);
throw std::runtime_error(buf); throw std::runtime_error(buf);
} }

Loading…
Cancel
Save