summaryrefslogtreecommitdiff
path: root/src/bin/embryo
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-20 14:25:11 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-20 14:25:11 +0000
commit8d2b64ed3b1a0f5f03ec69257eb68258121e4730 (patch)
tree5be6ba56b9d22c8ed2cef049170255d09ceece0f /src/bin/embryo
parent1486f40f9b39be4d07f48c78f2eb6d93715e6e52 (diff)
fix bug spotted by clang
SVN revision: 83016
Diffstat (limited to 'src/bin/embryo')
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c
index 5f93b19548..90e177c16a 100644
--- a/src/bin/embryo/embryo_cc_sc2.c
+++ b/src/bin/embryo/embryo_cc_sc2.c
@@ -148,7 +148,7 @@ plungefile(char *name, int try_currentpath, int try_includepaths)
148 148
149 strncpy(path, ptr, sizeof path); 149 strncpy(path, ptr, sizeof path);
150 path[sizeof path - 1] = '\0'; /* force '\0' termination */ 150 path[sizeof path - 1] = '\0'; /* force '\0' termination */
151 strncat(path, name, sizeof(path) - strlen(path)); 151 strncat(path, name, sizeof(path) - strlen(path) - 1);
152 path[sizeof path - 1] = '\0'; 152 path[sizeof path - 1] = '\0';
153 result = plungequalifiedfile(path); 153 result = plungequalifiedfile(path);
154 } /* while */ 154 } /* while */