File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -688,9 +688,9 @@ int lobj_fd, retval;
688
688
689
689
oldstmtlen = strlen (old_statement );
690
690
691
- for (opos = 0 ; opos < oldstmtlen ; opos ++ ) {
691
+ for (opos = 0 ; opos < oldstmtlen ; opos ++ ) {
692
692
693
- // Squeeze carriage-returns/linfeed pairs to linefeed only
693
+ // Squeeze carriage-return/linefeed pairs to linefeed only
694
694
if (old_statement [opos ] == '\r' && opos + 1 < oldstmtlen &&
695
695
old_statement [opos + 1 ] == '\n' ) {
696
696
continue ;
@@ -1156,7 +1156,7 @@ char key[33];
1156
1156
* funcEnd = svchar ;
1157
1157
while ((* funcEnd != '\0' ) && isspace (* funcEnd )) funcEnd ++ ;
1158
1158
1159
- /* We expect left parenthensis here,
1159
+ /* We expect left parenthesis here,
1160
1160
* else return fn body as-is since it is
1161
1161
* one of those "function constants".
1162
1162
*/
@@ -1175,7 +1175,7 @@ char key[33];
1175
1175
}
1176
1176
/* copy mapped name and remaining input string */
1177
1177
strcpy (escape , mapFunc );
1178
- strncat (escape , funcEnd , sizeof (escape )- strlen (mapFunc ));
1178
+ strncat (escape , funcEnd , sizeof (escape )- 1 - strlen (mapFunc ));
1179
1179
}
1180
1180
else {
1181
1181
/* Bogus key, leave untranslated */
You can’t perform that action at this time.
0 commit comments