[xutil] Do not use strncmp here

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-04-10 11:33:09 +02:00
parent edf7a12d42
commit 521f7d58be
1 changed files with 5 additions and 5 deletions

View File

@ -99,15 +99,15 @@ name_func_lookup(const char *funcname, const name_func_link_t *list)
Position Position
position_get_from_str(const char *pos) position_get_from_str(const char *pos)
{ {
if(!a_strncmp(pos, "top", 3)) if(!a_strcmp(pos, "top"))
return Top; return Top;
else if(!a_strncmp(pos, "bottom", 6)) else if(!a_strcmp(pos, "bottom"))
return Bottom; return Bottom;
else if(!a_strncmp(pos, "right", 5)) else if(!a_strcmp(pos, "right"))
return Right; return Right;
else if(!a_strncmp(pos, "left", 4)) else if(!a_strcmp(pos, "left"))
return Left; return Left;
else if(!a_strncmp(pos, "auto", 4)) else if(!a_strcmp(pos, "auto"))
return Auto; return Auto;
return Off; return Off;
} }