diff options
author | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-01-12 18:49:43 +0100 |
---|---|---|
committer | Dmitrij D. Czarkoff <czarkoff@gmail.com> | 2016-01-13 20:49:48 +0100 |
commit | de41f9854ec827c5cfe89cc44c644e4c38a6faa0 (patch) | |
tree | 52fbb44212e56c4db98f40cb50fc1f20d030ac48 /src/main.c | |
parent | 1665390ee94a160618b2bfdeeb1d7b993ee8a264 (diff) | |
download | imv-de41f9854ec827c5cfe89cc44c644e4c38a6faa0.tar.gz |
Use PATH_MAX for buffers holding paths
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -217,7 +217,7 @@ int main(int argc, char** argv) /* if the user asked us to load paths from stdin, now is the time */ if(g_options.sin) { - char buf[512]; + char buf[PATH_MAX]; while(fgets(buf, sizeof(buf), stdin)) { size_t len = strlen(buf); if(buf[len-1] == '\n') { |