|
@@ -221,11 +221,17 @@ static const char *goto_label;
|
221
|
221
|
* @ret rc Return status code
|
222
|
222
|
*/
|
223
|
223
|
static int goto_find_label ( const char *line ) {
|
|
224
|
+ size_t len = strlen ( goto_label );
|
224
|
225
|
|
225
|
226
|
if ( line[0] != ':' )
|
226
|
227
|
return -ENOENT;
|
227
|
|
- if ( strcmp ( goto_label, &line[1] ) != 0 )
|
|
228
|
+
|
|
229
|
+ if ( strncmp ( goto_label, &line[1], len ) != 0 )
|
|
230
|
+ return -ENOENT;
|
|
231
|
+
|
|
232
|
+ if ( line[ 1 + len ] && ! isspace ( line[ 1 + len ] ) )
|
228
|
233
|
return -ENOENT;
|
|
234
|
+
|
229
|
235
|
return 0;
|
230
|
236
|
}
|
231
|
237
|
|